Archive

Archive for October, 2011

Override HTTP to HTTPS and Close HTTP TRACE

October 14, 2011 Leave a comment

Override HTTP to HTTPS:

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Close HTTP TRACE:

RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteCond %{REQUEST_METHOD} ^TRACK
RewriteRule .* - [F]
Advertisements
Categories: Ngoprek