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
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