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 26052] - DOCUMENT_ROOT environment variable set incorrectly with VirtualDocumentRoot
Date Tue, 07 Feb 2006 09:25:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=26052>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=26052





------- Additional Comments From andrixnet@yahoo.com  2006-02-07 10:25 -------
Indeed, Alias, ScriptAlias, mod_rewrite and UserDir all can brake DOCUMENT_ROOT
validity. BTW, regardless of ScriptAlias, doesn't a script know where it's own
filename is (complete path)? There are other variables that state it. So a
script can know it's own whereabouts, even if aliased outside the DOCUMENT_ROOT. 

Aren't Alias, ScriptAlias, mod_rewrite and UserDir for the purpose of doing
_specific_ configurations? I mean for when you need a custom, tweaked
configuration. (oh, and with mod_rewrite you can create a workaround, I've given
the example already).

aliasing/url rewriting does give the responsability to the httpd admin for
needing/wanting a _specific_ connfiguration layout and it's his responsability
to notify his website owners about things that work and things that don't work
or work differently in the environment that he has created. [one that is not the
generic config BOTH needed and sufficient to run a website]

Since : 
<virtualhost>
 DocumentRoot ...

does set a consistent DOCUMENT_ROOT, and mod_vhost_alias is by it's mission, a
way to allow you to simplyfy your config, NOT doing some _specific_ aliasing
schemes. So why can't mod_vhost_alias give the same results as writing multiple
<virtualhost> directives? That's what it's mission is supposed to be, right?

If i do some further aliasing, that's my problem as an admin and i shuold know
what i break. 
And most often I really don't need such specific aliasing. 

If DOCUMENT_ROOT is supposed to be so useless/unreliable, what should i do to
find where my site's files are located? asume going ../ from the script path ? 

I am only sorry my knowledge of C is so limited, 'cause I would've written a
patch myself for mod_vhost_alias long ago.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message