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 <cove...@gmail.com> wrote:

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

Reply via email to