httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Itamar Gal <itamarg...@gmail.com>
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:

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#vhosts

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

RewriteEngine On
RewriteOptions Inherit

Thanks again for your help!

Cheers,
Itamar


On Mon, Oct 26, 2015 at 8:35 AM, Eric Covener <covener@gmail.com> wrote:

> On Mon, Oct 26, 2015 at 9:15 AM, Itamar Gal <itamarggal@gmail.com> 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: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message