Rewrite Rule Rewriting root site

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

 



We have a server at http://rootsite.net. We also have another site/app that runs at http://apps.rootsite.net. We host client applications on our server using apache so the above site/app needs to be http://apps.ourclientsdomain.tld. Here is what i have gotten to work in the site/app virtual host file:

ServerName apps.*

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^apps\.
    RedirectMatch ^/$ /somealias/

This appears to work, however, it has also taken over our root site. So http://rootsite.net now takes you to http://rootsite/somealias. How can i stop this from happening? I assume i have something amiss in the above rewrite?

---------------------------------------------------------------------
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