NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

fondy's avatar
fondy
Tutor
Feb 15, 2021

Apache conf files and security

Hi Use OS 6.10.4 on a Readynas Pro2. Using the NAS for websites, installed Mysql, PHPAdmin, and PHP 7.4. The OS installed the Apache server

 

I see in my Apache Error log that there are many visitors from China, USA, etc that are trying to install harmfull software.

 

I use the standard apache2.conf that OS 6.10.4 installed

 

I am using this in my private conf file for my sites, here is an example:

 

DocumentRoot /xx/xx/xx/xx

ServerName xxxx.yyyy.com

ErrorLog ${APACHE_LOG_DIR}/error.log

CustomLog ${APACHE_LOG_DIR}/access.log combined

   <Directory "/xx/xx/xx/xx/">

      IndexOptions +FancyIndexing NameWidth=*

        Options Includes FollowSymLinks Indexes ExecCGI

        AllowOverride

        All Require all granted

   </Directory>
</VirtualHost>

 

Is there something I can put in the apache2.conf file for security?

 

In my Virtual host file, is there something I should correct, delete or change?

 

Regards Paal

2 Replies

    • Sandshark's avatar
      Sandshark
      Sensei

      It might help others with a similar problem that are searching the forum if you describe your fix.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More