httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Itamar Gal <>
Subject Re: [users@httpd] Sanity Checking mod_rewrite for Apache 2.2 on Ubuntu 12.04
Date Mon, 26 Oct 2015 16:54:25 GMT
Hey Eric,

Thank you for the advice. You hit the nail on the head. The Ubuntu Apache
installation comes pre-configured with a catch-all default virtual-host
which apparently (as you said) was not inheriting the rewrite settings.
Copy-pasting the identical configuration settings into the virtual-host
body resulted in the expected behavior. After consulting the documentation
again (armed with this new insight) I also noticed the following section:

which describes how to have a virtual host inherit rewrite rules.
Apparently the following directives are required in the body of the virtual

RewriteEngine On
RewriteOptions Inherit

Thanks again for your help!


On Mon, Oct 26, 2015 at 8:35 AM, Eric Covener <> wrote:

> On Mon, Oct 26, 2015 at 9:15 AM, Itamar Gal <> wrote:
> > /etc/apache2/conf.d/security
> Unlike most other settings,. Rewrite rules are not automatically
> inherited from the base config to virtual hosts.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message