Jump to content

Mass virtual hosting?


the_oliver

Recommended Posts

Hi, im trying to configure virtual hosting, under Apache 2 on a Linux centOS box. 
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:

[code]# 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
[/code]

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!

(oh:

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

)
Link to comment
https://forums.phpfreaks.com/topic/30117-mass-virtual-hosting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.