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 16:03:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48691

--- Comment #7 from alex yaroshevich <qfox@ya.ru> 2010-02-07 08:03:41 UTC ---
(In reply to comment #6)
> And in that time mod_rewrite working after "Virutalization" on each iteration
> adds to start of file-path directory. Actually it doesn`t clean it between
> iterations as I see bqz have no documentroot or another ground. When we define
> some documentroot with virtualdocumentroot it .
Sorry.
When we define documentroot with virtualdocumentroot mod_rewrite adds a part
which cant clear.

For example:
http://foo.domain/path/file.html
hack in .htaccess:
RewriteCond %{ENV:REDIRECT_STATUS} 200|404
RewriteRule .* - [L]

we have documentroot
documentroot /var/www/subdomain/
virtualdocumentroot /var/www/subdomain/%-3/
rewrites:
1. path/file.html -> /var/www/subdomain/foo/path/file.html
2. /var/www/subdomain/foo/path/file.html ->
/var/www/subdomain/foo/foo/path/file.html - it stops if hack in .htaccess
3. /var/www/subdomain/foo/foo/path/file.html ->
/var/www/subdomain/foo/foo/foo/path/file.html - if no hack.
4... infinite loop with foo/foo/foo/... rewritelog looks nice)

we have no documentroot (it is, but equals something like /htdocs)
#documentroot
virtualdocumentroot /var/www/subdomain/%-3/

1. path/file.html -> /var/www/subdomain/foo/path/file.html
2. /var/www/subdomain/foo/path/file.html ->
/var/www/subdomain/foo/path/var/www/subdomain/foo/path/file.html - it stops if
hack in .htaccess
3... infinite loop with /var/www/subdomain/foo/path/var/www/subdomain/...

and if we have special documentroot
documentroot /var/www/subdomain/foo/
virtualdocumentroot /var/www/subdomain/%-3/

1. path/file.html -> /var/www/subdomain/foo/path/file.html
2. /var/www/subdomain/foo/path/file.html ->
/var/www/subdomain/foo/path/file.html - it stops because hack/fileexistance

It`s not a solution, it`s an example and proofs or my bug-theory.)


I think in future apache can set DocumentRoot by VirtualDocumentRoot if
DocumentRoot set to special value. Or DocumentRoot can use variables. Or other
solutions. And current algorithms is very ugly.

-- 
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