httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Falco Schwarz <>
Subject [users@httpd] mod_rewrite, scopes and inheritance
Date Mon, 30 May 2016 12:26:59 GMT
Hi there,

I have a question regarding the inheritance of RewriteRules from
different scopes. So, I have the following setup:

- several <Directory> blocks, including the following:
    <Directory /opt/www>
        AllowOverride  None
        Options        FollowSymLinks
        Require        all granted

        RewriteEngine On
        RewriteOptions InheritDownBefore
        RewriteCond %{REQUEST_URI} ^/some/very/special/path.html
        RewriteRule ^ - [END]

- two vhosts, one on port 80, one on port 443
- a global RewriteRule from http to https (in the vhost using port 80)
- the DocumentRoot pointed to /opt/www

Now, I actually want that the request to the very-special-path file
will never be rewritten to https and I though by using the
RewriteOptions InheritDownBefore directive, that I could achieve that.
Yet it does not seem to work - the rule is not inherited at all. To me
it seems as a RewriteRule in a Directory block is treated differently
than a rule outside of it.

Is there any way to inherit the rule from the directory scope on
server level to a virtual host? Could this be a possible bug in the
inheritance of rules or am I missing something here?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message