I am using dynamic vhost on my apache development server (conf at end of
msg).
I am using $_SERVER['DOCUMENT_ROOT'] in the sites I am working on, which, as
you may have guessed isnt giving me the full path of the vhosts web root
folder (Its returning the value as set in my main apache conf file as it
should)
Is there a way to get the full path to the web root folder from php or have
the value for document_root automatically munged by apache ?
dynamic-vhosts.comf
#Simple dynamic virtual hosts
#
# This extract from apache2.conf implements the virtual host arrangement
# outlined at http://www.apache.org/docs/vhosts/mass.html, using
# mod_vhost_alias.
# get the server name from the Host: header
UseCanonicalName Off
#
# this log format can be split per-virtual-host based on the first field
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog logs/access_log vcommon
#
# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /mnt/raid/Net/%0/htdocs
#VirtualScriptAlias /www/hosts/%0/cgi-bin
Rick