httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Daubenspeck <m...@oddprocess.org>
Subject Re: Vhost.conf file Virtual Host Problems Pulling Hair Out
Date Thu, 24 Jan 2002 18:06:56 GMT
At 12:22 PM 1/24/2002 -0700, you wrote:
>Here is the Vhost.conf file that you wanted to
>see. I have not pointed anything to grab this
>file. It was set to this when I installed
>Apache, should I comment this file or do some
>changes?

There are no (as far as I can tell) actual virtual hosts defined. Do you 
have them defined somewhere else? If you want multiple hosts using 
different names and the same IP address, you need so do something like:

NameVirtualHost 11.22.33.44

<VirtualHost 11.22.33.44>
DocumentRoot /www/var/domain1.com
ServerAdmin webmaster@domain1.com
ServerName www.domain1.com
ServerAlias domain1.com
</VirtualHost>

<VirtualHost 11.22.33.44>
DocumentRoot /www/var/domain2.com
ServerAdmin webmaster@domain2.com
ServerName www.domain2.com
ServerAlias domain2.com
</VirtualHost>

Etc etc. Check out http://httpd.apache.org/docs/mod/core.html#namevirtualhost


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message