2019年6月28日 星期五

Disable Track and Trace in apache


i have apache 2.2.22 in suse linux , i want disabel track & trace in apache and use 1- TraceEnable Off and 2- RewriteEngine on RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) RewriteRule .* - [F] . but of 2 way don't work , please help me .



A:
In Apache2 you can just add TraceEnable Off in httpd.conf (end of file) TraceEnable Off


To check if Trace is On/Off you can use Curl: curl -v -X TRACE http://www.yourserver.com


A:
You need to put TraceEnable Off in httpd.conf


A:
To disable these methods, add the following lines for each virtual host in your configuration file :
RewriteEngine on

RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)

RewriteRule .* - [F]



A:
Unless a module is installed which supports TRACK, then TRACK is not supported by default by Apache, hence the only need to have the directive:
TraceEnable Off


However, for a belt-and-suspenders approach, also add: RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) [NC] RewriteRule ^.* - [F]


This will disable both TRACE and TRACK.

A:
For Apache HTTPD 2.4: Require not method TRACE TRACK 

http://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require




沒有留言:

張貼留言