You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Andrea Riela <ml...@nesys.it> on 2003/12/10 11:51:35 UTC

[users@httpd] R: [users@httpd] Redirect to ssl site

> What's your problem exactly?

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


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


Re: [users@httpd] R: [users@httpd] Redirect to ssl site

Posted by Andrea Classen <An...@emcdda.eu.int>.
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