RE: Server config level RewriteCond not working

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

 



Thanks Krist,

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



> Date: Mon, 24 Nov 2008 09:27:12 +0100
> From: krist.vanbesien@xxxxxxxxx
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re: Server config level RewriteCond not working
>
> 2008/11/24 likai <likaipp1982@xxxxxxxxxxx>:
>
> > 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.van besien@xxxxxxxxx
> krist@xxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxx
> " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>


更多热辣资讯尽在新版MSN首页! 立刻访问!

[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