Re: Apache Not Redirecting

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

 




From: "Chris"
To: users@xxxxxxxxxxxxxxxx
Sent: Friday, April 5, 2013 1:34:03 PM
Subject: Apache Not Redirecting

>Apache 2.2.12 on sles11 sp2. We are trying to get users to access http://share.domain.com. Apache has a >VirtualHost file with redirectmatch ^/$ http://share.domain.com/share
>Apache seems to not be redirecting this. Here is http://share.domain.com results:
>
>Any ideas why apache is not performing the redirectmatch?

So, i am wondering if i can do a http_host regex? Something like:
<VirtualHost *:80>
    ServerName share.*

    JkMount /share|/* worker1
    RewriteCond %{HTTP_HOST} ^share\.
    RedirectMatch ^/$ http://share.{HTTP_HOST}/share/

</VirtualHost>

Would that accomplish anydomain? We will have many clients accessing the same content at http://share.theirdomain.tld and we need it to redirect to http://share.theirdomain.tld/share.

[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