httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krist van Besien <krist.vanbes...@gmail.com>
Subject Re: [users@httpd] virtual hosts and rewrite rules
Date Mon, 25 May 2009 11:48:24 GMT
On Fri, May 22, 2009 at 10:30 AM, Tom Evans <tevans.uk@googlemail.com> wrote:

> If you have vhosts, then the default vhost is not what is specified
> outside of the vhost tags, it is the first defined vhost in your conf
> file. This means that any vhost level directives (like RewriteRules,
> ProxyPass, Location blocks etc) must be defined inside a vhost container
> to be relevant. Yours aren't, which is why they are ignored.

You can use:

RewriteOptions Inherit

to make a Vhost inherit the rewrite rules from the surrounding config.

Krist




-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message