Change it so it looks like this

<VirtualHost *>
DocumentRoot "/var/www/html/test1"
ServerName nstest1.homedns.org
DirectoryIndex index.html index.php index.htm
</VirtualHost>

<VirtualHost *>
DocumentRoot "/var/www/html/test2"
ServerName nstest2.homedns.org
DirectoryIndex index.html index.php index.htm
LogLevel debug
</VirtualHost>

the directive in the vitrual host line is what tells apache what interface/ip to listen on. assuming you only have one IP address on that box, you could also just put that address there instead of the *



Nilesh Sahita wrote:

Hi,

I am trying to run two domains on one Apache domain.

The system config is: RH9, Apache 2.0.40

I setup two domains - nstest1.homedns.org and nstest2.homedns.org

In Apache configuration, I create two virtual servers - the entries from
httpd.conf are:

Quote

...

NameVirtualHost *

<VirtualHost nstest1.homedns.org>
DocumentRoot "/var/www/html/test1"
ServerName nstest1.homedns.org
DirectoryIndex index.html index.php index.htm
</VirtualHost>

<VirtualHost nstest2.homedns.org>
DocumentRoot "/var/www/html/test2"
ServerName nstest2.homedns.org
DirectoryIndex index.html index.php index.htm
LogLevel debug
</VirtualHost>

End-quote





-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to