Forum Moderators: phranque
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
# added 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 /www/hosts/%0
VirtualScriptAlias /www/hosts/%0/cgi-bin
But when i use this example i get an error when running the check utility:
VirtualDocumentRoot takes one argument, how to create the DocumentRoot based on the host.
Please can anybody show me a working example of how i should do this?