Step1: Login to the server
Step2: Locate the apache configuration file
# locate httpd.conf
Step3: Open the apache configuration file and add the following lines in each virtual host tag
#vim httpd.conf
--------------------------------------------------------------------------------------
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</VirtualHost>
------------------------------------------------------------------------------------
Step4: Save the configuration file and restart apache process
#/etc/init.d/httpd restart
######################################################
If there is no virtual host configured then add the following parameter in httpd.conf file
#vim httpd.conf
TraceEnable Off
restart httpd process
Step2: Locate the apache configuration file
# locate httpd.conf
Step3: Open the apache configuration file and add the following lines in each virtual host tag
#vim httpd.conf
--------------------------------------------------------------------------------------
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]
</VirtualHost>
------------------------------------------------------------------------------------
Step4: Save the configuration file and restart apache process
#/etc/init.d/httpd restart
######################################################
If there is no virtual host configured then add the following parameter in httpd.conf file
#vim httpd.conf
TraceEnable Off
restart httpd process
No comments:
Post a Comment