httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Greenlees" <>
Subject Re: [users@httpd] NameVirtualHost
Date Tue, 24 Dec 2002 00:17:30 GMT
as Boyle put it for both name and ip based virtual hosting on Dec 9 2002
in thread "Specific Configuration"

"There are two ways you can go - depending on whether you want to declare
many aliases for your IP in DNS...

(1) If you do not mind paying for many Domain-Names which resolve to
your IP, then:

Use Name-based VirtualHosts, like this (assume your IP = and
your sites are called, etc..):


	  DocumentRoot /home/site1/html
	  ... etc.

	  DocumentRoot /home/site2/html
	  ... etc.

(2) Alternatively, if you can have only one Domain Name, use Aliases to
separate the document roots, e.g. (assuming your FQDN is

	DocumentRoot /home/default/html

	Alias /site1 /home/site1/html
	<Directory /home/site1/html>
	  Allow from all

	Alias /site2 /home/site2/html
	<Directory /home/site2/html>
	  Allow from all

Now will go to /home/site1/html etc. NB
/home/default/html is necessary - this is where ends up
(you can just put a simple page there with links to the other sites).


Owen Boyle"

not sure but you may not have the site name in the vh declaration ( you 
didn't include it in your post )

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message