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][root@host.net]# 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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.