You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Georges Villot <gv...@free.fr> on 2006/11/29 17:49:42 UTC

[users@httpd] rewrite + ssl

Hi,

I'm trying to rewrite all HTTP calls to HTTPS, except for the default 
page. So I wrote in the apache config:

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/$ - [S=1]
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]

it works, except that the SSL certificate is sent anyway, what I would 
like to avoid.

thank you in advance for any help,

georges.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org