Apache 2, VirtualHost, Alias, PHP
October 3, 2007 12:05 PM
Subscribe
Apache 2, VirtualHost directives, Alias, PHP's DOCUMENT_ROOT variable - confusion!
I have a few VirtualHosts. Each VirtualHost has an Alias, defined in the root httpd.conf - this Alias points to an app. On some servers, referencing $_SERVER['DOCUMENT_ROOT'] shows me the application's document root (not preferable) and on other servers, this value is the is the site's document root (preferable). The app is always accessed through the Alias.
Any ideas how to make this consistent?
posted by xmutex to technology (2 comments total)
What the hell is going on?
posted by xmutex at 12:22 PM on October 3, 2007