httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Bristol" <netrunn...@cox.net>
Subject RE: Vhost.conf file Virtual Host Problems Pulling Hair Out
Date Sat, 26 Jan 2002 01:49:14 GMT
When I do that I get "you don't permission to access "/" when trying to
access the websites via a web browser??

-----Original Message-----
From: Matthew Daubenspeck [mailto:matt@oddprocess.org]
Sent: Thursday, January 24, 2002 10:07 AM
To: users@httpd.apache.org
Subject: Re: Vhost.conf file Virtual Host Problems Pulling Hair Out


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


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message