httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Classen <Andrea.Clas...@emcdda.eu.int>
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
>Regards
>Andrea
>
>
>
>  
>
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>
<Directory /otherdocs/cgi-bin/qmailadmin>
RewriteEngine        on
RewriteCond          %{HTTPS} !=on
RewriteRule          ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]
...
</Directory>

Bye, Andrea


---------------------------------------------------------------------
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


Mime
View raw message