Friday, June 29, 2012

Apache and IBM Http Server: Force HTTP session to HTTPS

LoadModule rewrite_module modules/mod_rewrite.so
Listen 80
<VirtualHost *:80>
ServerName wasabccldvapp02
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://wasabccldvapp02$1/ [R]
RewriteLogLevel 0
RewriteLog "/apps/IBM/HTTPServer/logs/rewrite.log"
</VirtualHost>

No comments:

Post a Comment