httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48691] mod_rewrite lost a ground
Date Sun, 07 Feb 2010 13:47:10 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48691

--- Comment #4 from alex yaroshevich <qfox@ya.ru> 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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message