My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Wednesday, June 25, 2014

Remove TRace from web server

1. Disable trace OFF in web server (httpd.conf) file

          TraceEnable off

2. If the above does not work , here is a simple REDIRECT statement

           RewriteEngine On
           RewriteCond %{REQUEST_METHOD} ^TRAC(E|K)
           RewriteRule .* - [F]

3. Do this in the application server if not

Simply edit $TOMCAT/conf/server.xml, 
and for the  element, add an attribute: allowTrace="false". 
Restart Tomcat and enjoy

No comments :