Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

[Bug 26052] DOCUMENT_ROOT environment variable set incorrectly with VirtualDocumentRoot

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Apr 30, 2008, 8:17 PM

Post #1 of 2 (147 views)
Permalink
[Bug 26052] DOCUMENT_ROOT environment variable set incorrectly with VirtualDocumentRoot

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


lundman <lundman[at]lundman.net> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |lundman[at]lundman.net




--- Comment #26 from lundman <lundman[at]lundman.net> 2008-04-30 20:17:27 PST ---
> * Setting a VIRTUAL_DOCUMENT_ROOT environment variable is useless, because it
> still requires users of the system to recode.

Except the way it is now, it is not possible for me, as a developer, to get the
information "I must have". Simply can not be done.

I use this for all users home directory (just the one vhost for 200,000
customers)
VirtualDocumentRoot "/export/cgi/%-1/%-2.-1/%-2.-2/%-2+/"

The suggestion above to "yet again" create the hash with mod_rewrite, just so I
can set a DocumentRoot, is not maintainable, and rather risk-prone.

Even though "VIRTUAL_DOCUMENT_ROOT" is undesirable, it at least gives me _one
possible way_ to set the real "ROOT" for the scripts/users home etc. Even to
buy me time while you guys argue over semantics.

Which leaves me, and probably others, with patching Apache, which will further
complicate future support, debugging, and delay any upgrade for security
patches, bringing down the reputation of Apache.

Seriously, do something about it please :)


--
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[at]httpd.apache.org
For additional commands, e-mail: bugs-help[at]httpd.apache.org


bugzilla at apache

May 10, 2008, 11:37 AM

Post #2 of 2 (101 views)
Permalink
[Bug 26052] DOCUMENT_ROOT environment variable set incorrectly with VirtualDocumentRoot [In reply to]

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


Kiall Mac Innes <kiall[at]managedit.ie> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |kiall[at]managedit.ie




--- Comment #27 from Kiall Mac Innes <kiall[at]managedit.ie> 2008-05-10 11:37:05 PST ---
I've worked around this bug by creating a file with the following:

<?php
$_SERVER['DOCUMENT_ROOT'] =
str_replace($_SERVER['SCRIPT_NAME'],"",$_SERVER['SCRIPT_FILENAME']);
?>

And I use:

<VirtualHost 123.123.123.123>
VirtualDocumentRoot /path/to/sites/
...
php_admin_value auto_prepend_file /path/setdocroot.php
</VirtualHost>

Also - this should work in a .htaccess file (untested):

php_flag auto_prepend_file /path/setdocroot.php


--
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[at]httpd.apache.org
For additional commands, e-mail: bugs-help[at]httpd.apache.org

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.