httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Axel-Stéphane SMORGRAV <Axel-Stephane.SMORG...@europe.adp.com>
Subject RE: [users@httpd] Redirect HOSTname to https virtual host
Date Tue, 11 Jan 2005 08:19:27 GMT
You should be able to do that in your default virtual host for port 80. Remember that the ordering
of rewrites is significant, so you can put a rule for http://mail.domain.net/ that forces
a redirection to https://mail.domain.net first in your rewrite rules for the default virtual
host.

-ascs

-----Message d'origine-----
De : JBT [mailto:jultus@gmail.com] 
Envoyé : lundi 10 janvier 2005 22:46
À : users@httpd.apache.org
Objet : [users@httpd] Redirect HOSTname to https virtual host

Hi, I'm running Apache 2 on this FC3 server.

Having virtual default host listening to domain.net and dns for http://*.domain.net rewrites
to "http://domain.net"
this goes to one port 80 document root, all fine and dandy.

then, I'm having a virtual host for SSL, which is

https://mail.domain.net

and I have
Redirect /mail https://mail.domain.net
working fine for this, so that when people go to http://domain.net/mail they end up with the
httpS://mail.domain.net virtual host doc. root

But now I want to have
http://mail.domain.net
(so JUST the "mail" host on port 80 traffic for the domain) to ALSO redirect/rewrite to httpS://mail.domain.net

How do I (best) accomplish that?
I've tried some things, like creating another virtual host container just for this one rewrite,
but this is kind of over the top, I'd say.

domain.net is also the default host in this case, and there are more domains running on the
server.
--
Adios

Julius

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


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