httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] VirtualDocumentRoot problem
Date Sun, 02 Jul 2006 14:20:02 GMT
On 7/2/06, Neo Wee Teck <stelgn@gmail.com> wrote:
> Hi,
>
> I just notice some problems when using mod_vhost_alias
>
> It seems that when using VirtualDocumentRoot, the variable DocumentRoot in
> PHP got mixed up
>
> Server Global
>
> > DocumentRoot /var/www/htdocs
>
> Inside  <VirtualHost>
> > VirtualDocumentRoot /var/www/vhost/%0/htdocs
>
> When I run a phpinfo script, this is the variable it gave
>
> > _SERVER["DOCUMENT_ROOT"] /var/www/htdocs
>
>  Is this suppose to be correct? How can I force it to the interpolated path
> which is /var/www/vhost/somehostname.blah.com/htdocs

See:
http://issues.apache.org/bugzilla/show_bug.cgi?id=26052
which outlines the whole long debate behind this issue and also
suggests a patch for those who want it.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message