httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From likai <likaipp1...@hotmail.com>
Subject RE: [users@httpd] Server config level RewriteCond not working
Date Tue, 25 Nov 2008 09:11:58 GMT

Thanks Krist,

By adding these two lines in every virtual host, it works.
RewriteEngine OnRewriteOptions inherit


> Date: Mon, 24 Nov 2008 09:27:12 +0100
> From: krist.vanbesien@gmail.com
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Server config level RewriteCond not working
> 
> 2008/11/24 likai <likaipp1982@hotmail.com>:
> 
> > I am wondering why the server config level settings do not work.
> 
> Server config level rewrites certainly work, but they are not
> automatically inherited by a virtual host. Probably this is what you
> are seeing.
> If you want to have your server level rewrite rules affect requests
> processes by a virtual host you have to add the following to your
> virtual host config:
> RewriteOptions inherit
> 
> 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
> 

_________________________________________________________________
MSN热搜榜,每天最In的信息资讯和热点排行让您一览无余!
 http://top.msn.com.cn
Mime
View raw message