mulitple domains
Posted by: irish (---.dsl.digiweb.ie)
Date: October 11, 2006 10:02PM

I have many websites currently hosted on a server. I want to replicate the server environment on my machine. I have each website in a folder called workspace. I have been able to set up a virtual host for one of the websites but duplicating the process does not work to the others.

Here is what I have so far:

Listen 80
Listen 81
Listen 8080

NameVirtualHost *:80
NameVirtualHost *:81
NameVirtualHost *:8080

<VirtualHost *:81>
DocumentRoot E:\workspace\website1
ServerName localhost
</VirtualHost>

<VirtualHost *:8080>
DocumentRoot E:\workspace\website1
ServerName localhost
</VirtualHost>


When I go to [localhost] in a browser it displays website1 but if I go to [localhost] it just gives me a 404 not found error.


Options: ReplyQuote


Sorry, only registered users may post in this forum.