https://issues.apache.org/bugzilla/show_bug.cgi?id=48691

--- Comment #4 from alex yaroshevich <[email protected]> 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>
        ServerName users.domain.name
        ServerAlias *.users.domain.name
        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/ru.qfox.dev/error.log
        CustomLog /var/log/apache2/ru.qfox.dev/access.log vhost_combined
        RewriteLog /var/log/apache2/ru.qfox.dev/rewrite.log
        RewriteLogLevel 5
</VirtualHost>

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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to