httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Cicimov <icici...@gmail.com>
Subject Re: [users@httpd] Rewrites not working in 'server config'
Date Thu, 20 Sep 2012 07:50:59 GMT
On Sep 19, 2012 8:46 PM, "David Hubbard" <dhubbard@dino.hostasaurus.com>
wrote:
>
> Is there a trick to getting rewrites working in the
> base config file?

Put

RewriteOptions inherit

in the virtual hosts.

I'm trying to block a bad bot
> by user agent server-wide, I tested it in one site and
> have the relevant rewrites working fine in .htaccess,
> but when moving them to the global config, it does
> not work.
>
> I tried wrapping in a directory clause for the parent
> directory that holds all the websites, that didn't
> help.  The rewrite directives (engine on, condition
> and rule) only seem to work in htaccess or in the
> virtual host directives.
>
> Thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Mime
View raw message