Page 1 of 1

Mass Virtual Hosting

Posted: 2006/12/10 13:34:12
by the_oliver
Hi, im trying to configure virtual hosting, under Apache.
What i wand is for it to be able to cope with mass vertual hosting, with out me having to eddit the conf each time i add a new site. I did some resurch and found i can do this through the using the mod_vhost_alias function, and the code pasted below. I think that is is supposed to work so that all i have to do is create a file with the sites name and it will look for this when a request is made?

# 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 /var/www/html/%0/docs
VirtualScriptAlias /var/www/html/%0/cgi-bin

So i posted this at the bottome of my httpd.conf and restarted apache. However whenever i try it i get:

The requested URL / was not found on this server.

What have i missed? Sugestions would be gratley appreshaited. Thanks!


[]# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 (/etc/httpd/conf.d/ssl.conf:88)
Syntax OK


Mass Virtual Hosting

Posted: 2006/12/22 11:28:14
by breun
You might want to take a look at a control panel like Webmin when managing a lot of vhosts. Or even commercial offerings like Plesk.