I can see the following entries in /etc/httpd/conf/httpd.conf

RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F] 

What is the use of these lines in the config file?

link|improve this question

feedback

2 Answers

up vote 1 down vote accepted
RewriteEngine on

Enable the runtime rewriting engine.

RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)

If request method is TRACE or TRACK.

RewriteRule .* - [F] 

Force URL to be forbidden. The dash (-) means that don't substitute.

link|improve this answer
feedback

This group of directives forbids (returns a 403 response) all HTTP requests using the TRACE or TRACK methods.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.