httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48691] mod_rewrite lost a ground
Date Sun, 07 Feb 2010 13:47:10 GMT

--- Comment #4 from alex yaroshevich <> 2010-02-07 05:47:09 UTC ---
Btw, yesterday I was understand whats really happened in rewrite by reading
logs and testing.

Bqz after VirtualDocumentRoot directive DOCUMENT_ROOT is not really set success
mod_rewrite added (wtf?) base_path to url on each iteration.
And RewriteBase can`t help.

But when we rewrite via RewriteCode and Rules without VirtualDocumentRoot,
RewriteBase can solve the problem. LOL. Incompatibility is all our)...

for example:
<VirtualHost *:80>
        ServerAlias *
        UseCanonicalName Off

        # without any document root all is crazy. VirtualDocumentRoot not set
any. its idiotic directive
        DocumentRoot /home/www/name.domain.users/

        # virtuality
        # bogus shit
        #VirtualDocumentRoot /home/www/name.domain.users/%-4/
        # another shit
        RewriteCond %{IS_SUBREQ} false
        RewriteCond %{HTTP_HOST} ^([^\.]+(?:\.[^\.]+)*)\.users\.domain\.name$
        RewriteRule ^(.+) /%1$1

        ErrorLog /var/log/apache2/
        CustomLog /var/log/apache2/ vhost_combined
        RewriteLog /var/log/apache2/
        RewriteLogLevel 5

And RewriteBase ... in all root .htaccesses if we need to use mod_rewrite.
Btw, why we cant rewrite DocumentRoot in .htaccess? Apache have a lot of hacks
bqz backcompat, but NOT have that one (???).

As I see mod_vhost must have(!) real good methods/directives for virtual hosts.
But ITS wrong way and bogus shit.

Thanks for response, do any you want. Dixi.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

View raw message