Server config level RewriteCond not working

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

 




Hi,

I learned that
The RewriteCond has 3 kinds of context(This indicates where in the server's configuration files the directive is legal)
    Server config, virtual host, directory.

I have a httpd.conf file which has several whosts.
when configuring the server config level rewritcond settings, it always failed.
And the virutual host context level settings(putting these lines within each <vhost XXX>) works.

RewriteEngine on
RewriteCond %{REQUEST_METHOD} =HEAD
RewriteRule .* - [F]

I am wondering why the server config level settings do not work.


微软官方地图机器人横空出世,助你成为城市达人! 立即添加!

[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