httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject RE: Ask about Virtual Hosts!?
Date Wed, 12 Dec 2001 15:04:48 GMT

> From: Tung Nguyen Thanh [mailto:tungntapache@yahoo.com]

>
>  I can't run Virtual Host in Apache Webserver in Linux
> RedHat 7.0
>  The site I creat in httpd.conf when I want to display
> on browser only index to a DocumentRoot of the first
> site.
>
>
> ServerRoot "/usr/local/apache"
> ServerName www.linux_vn.com

To start, underscores "_" are not a legal character in hostnames.  It is a
bad idea to use them.

Second, please read http://httpd.apache.org/docs/vhosts/name-based.html
This explains in detail that the "main server" document root will never be
used for an IP
address that has name-virtual-hosting.  Instead, you should setup a second
name virtual host that answers for what was the main server.

Joshua.


Mime
View raw message