Re: Sanity Checking mod_rewrite for Apache 2.2 on Ubuntu 12.04

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:
On Mon, Oct 26, 2015 at 9:15 AM, Itamar Gal <itamarggal@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux