httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Classen <>
Subject Re: [users@httpd] R: [users@httpd] Redirect to ssl site
Date Wed, 10 Dec 2003 12:14:21 GMT
Andrea Riela wrote:

>Ya, I'm bungling.
>I would, for this site, some directories in https (for example, qmailadmin
>or vqadmin pages), but the site in http. www.domain.dom in http, but when I
>connect to www.domain.dom/cgi-bin/qmailadmin, I would that apache redirects
>my query to https://www.domain.dom/cgi-bin/qmailadmin. Now that works, but
>when I connect to https://www.domain.dom, I see my site in ssl, and I
>wouldn't that for the entire site.
>Now is partially cleaner?
>Thanks for your patience and support
Idea for the general server setup part (I am not really an expert):
<Directory /xxx/htdocs/>
RewriteEngine        on
RewriteCond          %{HTTPS} =on
RewriteRule          ^/(.*)$ http://%{SERVER_NAME}/$1 [R,L]
<Directory /otherdocs/cgi-bin/qmailadmin>
RewriteEngine        on
RewriteCond          %{HTTPS} !=on
RewriteRule          ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]

Bye, Andrea

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message