httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor Trac" <victor.t...@gmail.com>
Subject Re: [users@httpd] Redirect Question
Date Thu, 13 Apr 2006 22:25:43 GMT
Yes, that should work.  But if you're using name-based virtual hosting, it
would be best to put an actual IP in there (<VirtualHost xxx.xxx.xxx.xxx:80>)
rather than wildcards.

Cheers,
Victor

On 4/13/06, Stuart, Ed <Ed.Stuart@austinenergy.com> wrote:
>
> >
> >       If I'm reading this right, you could change <VirtualHost *> to
> <VirtualHost *:80> and then have two >>>separate VirtualHost containers
> , one listening for http and one for https (second one being
> <VirtualHost *:443>), >ith the exact same Redirect.  Using mod_rewrite
> may be a more elegant solution, though.
>
> >       -Victor
>
> Is this what you are suggesting?
> TIA
> Ed
>
> <VirtualHost *:80>
> ServerName test.appname.domain
> ServerAlias *
> Redirect permanent / https://testweb.domain/appname
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName test.appname.domain
> ServerAlias *
> Redirect permanent / https://testweb.domain/appname
> </VirtualHost>
>
> ---------------------------------------------------------------------
> 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
>
>


--
http://www.victortrac.com
Mime
View raw message