Forum Moderators: phranque

Message Too Old, No Replies

Example of mass dynamic vhosts setup wanted! Name based without mod re

         

hakanhaknuz

11:32 am on Nov 17, 2006 (gmt 0)

10+ Year Member



Can anybody show me an example of a name based mass dynamic vhosts setup without mod_rewrite?
I am looking for days for such an example, the apache documentation isn't clear to me and i don't seem to get this to work.
This is the example that the apache documention provides:

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