Re: [users@httpd] Redirect Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
http://www.victortrac.com
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux