Mobile client redirect over SSL
Posted: Mon Jan 15, 2007 11:01 pm
I managed to set up the SSL redirect for /webmail/ and /sac/ using the recommended addition at the bottom of my http.conf file (I'm running Centos, so no ssl.conf)
I figured I could so something similar for the mobile access by adding a further couple of lines in the conf.
I made the edit, and restarted apache, but this doesn't seem to be effective. What am I missing? Both URLs -- http://mail.xxxx.com/m/ and https://mail.xxxx.com/m/ -- work, but traffic isn't redirected from http to https.
Its not a deal breaker, but I like things to work ...
Code: Select all
<VirtualHost *:80>
<LocationMatch "^/sac/*">
RewriteEngine on
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</LocationMatch>
<LocationMatch "^/webmail/*">
RewriteEngine on
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</LocationMatch>
</VirtualHost>
I figured I could so something similar for the mobile access by adding a further couple of lines in the conf.
Code: Select all
<LocationMatch "^/m/*">
RewriteEngine on
RewriteRule ^(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</LocationMatch>
I made the edit, and restarted apache, but this doesn't seem to be effective. What am I missing? Both URLs -- http://mail.xxxx.com/m/ and https://mail.xxxx.com/m/ -- work, but traffic isn't redirected from http to https.
Its not a deal breaker, but I like things to work ...
