Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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