httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Arnold <carn...@electrichendrix.com>
Subject Re: [users@httpd] Rewrite Rule Rewriting root site
Date Mon, 15 Apr 2013 23:34:35 GMT
On Mon, Apr 15, 2013 at 6:57 PM, Chris Arnold
<carnold@electrichendrix.com> wrote:
> 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/

Did you mean RewriteRule?  RewriteCond doesn't limit any other directives.

Actually, it is the RedirectMatch specifically causing the problem. How to specify only match
http://apps.somesite.tld?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message