Re: Redirect question

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

 





Igor Cicimov <icicimov@xxxxxxxxx> wrote on 05/07/2010 01:39:59 AM:

> Igor Cicimov <icicimov@xxxxxxxxx>

> 05/07/2010 01:39 AM
>
> Please respond to
> users@xxxxxxxxxxxxxxxx

>
> To

>
> users@xxxxxxxxxxxxxxxx

>
> cc

>
> Subject

>
> Re: Redirect question

>
> Another possible solution I can think of:
>
> NameVirtualHost 1.2.3.4:80
> <VirtualHost _default_:80>
> # Virtual host that will collect all the request not hitting
> # the main virtual host (including application.example.com one)
> # and redirect them to server.example.com/application
> DocumentRoot /usr/local/apache2/htdocs
> Redirect permanent /
http://server.example.com/application
> </VirtualHost>
> <VirtualHost 1.2.3.4:80>
> # Your man virtual host
> DocumentRoot /usr/local/apache2/htdocs

> ServerName server.example.com
> .
> .
> .

> </VirtualHost>
>
> Igor

What ended up working for us was RedirectMatch. I had tried this at one time but messed up the regular _expression_.
The syntax I needed was:

RedirectMatch ^/$ http://application/application

Since "application" is in DNS pointing to "server" this works.

Thanks to EVERYONE who gave suggestions...
John
[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