Re: [mod-security-users] mod_security specific to each virtual host
Brought to you by:
victorhora,
zimmerletw
|
From: Terry D. <tdo...@na...> - 2005-08-02 10:10:43
|
Terry Dooher wrote: [snip] > Depending on the rule you're matching, it might simply be possible to > skip mod_security and just add a Redirect directive to your VirtualHost, > issuing a 301 for the specific file: > > Redirect 301 /files/hiddenfile.txt http://main.example.com > > This doesn't do any pattern matching however. the mod_security way would > be to issue a "redirect:http://main.example.com" for the specific rule. > (I think this is a 301, but I haven't used this) My mistake. You _can_ do pattern matching with redirect. RedirectMatch does regexp pattern matching. 'tis all in here: http://httpd.apache.org/docs/2.0/mod/mod_alias.html Terry. |