Re: first name based virtual host taking precedence over all others

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

 



Hi folks,

Thanks to the list and the gracious member who helped me solve the issue.
Turns out the syntax below worked.

Best
Josh
================
Josh Sheldon







On 8/11/12 6:07 PM, "Josh Sheldon" <jsheldon@xxxxxxx> wrote:


>NameVirtualHost *
>
><VirtualHost *>
>ServerName one.example.machine.org
>DocumentRoot "/var/www"
><Directory "/var/www">
>allow from all
>Options +Indexes
></Directory>
>RedirectMatch ^/$ "http://another.example.machine/one";
></VirtualHost>
>
><VirtualHost *>
>ServerName two.example.machine.org
>DocumentRoot "/var/www"
><Directory "/var/www">
>allow from all
>Options +Indexes
></Directory>
>RedirectMatch ^/$ "http://another.example.machine/two";
></VirtualHost>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[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