[Modules] vhost_dbi and DOCUMENT_ROOT
Nicklas Löf
nicklas at ready.se
Tue Feb 1 15:27:29 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi again,
I just wonder if this is a mistake or by design.
vhost_dbi doesn't seem to set the DOCUMENT_ROOT environment variable
with the correct docroot-path. It does only modify the filename
variable of the request_rec.
This makes apache2 to fail back to some default DOCUMENT_ROOT
setting which is /htdocs, in Debian at least. I did discover this
when suphp did stop to work and complained that the script wasn't in
docroot(/htdocs).
Output from phpinfo() after I did move the test website to /htdocs:
vhost_dbi_PATH /htdocs/ab/12/34/ab123456/public_html
DOCUMENT_ROOT /htdocs
SCRIPT_FILENAME /htdocs/ab/12/34/ab123456/public_html/test.php
Another feature request would be the possiblity to set SERVER_ADMIN
env variable.
I know enough C and Apache API to fix this myself but if it has been
left out by design it would be nice to know why.
/Nicklas Löf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB/+YwzS7L7O596GgRAlpvAJ9KgmxyqadV2bHppX/+V+56FJKuKwCeKXMI
SJqN8Yo16JbP/vt/C5YOEak=
=i75W
-----END PGP SIGNATURE-----
More information about the Modules
mailing list