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

--- Comment #7 from alex yaroshevich <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to