httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aman Raheja <arah...@techquotes.com>
Subject Re: [users@httpd] Apache httpd.conf file
Date Wed, 22 Sep 2004 13:19:00 GMT
Gary Manigault wrote:

> I have attached a segment of my httpd.conf file for some questions 
> that I have. 
>  
> 1.  The NameVirtualHost section should it have my servers IP address 
> in it or a star or should it be commented out?  What does the star in 
> that field mean.

The following doc explains very well what the how this works.
http://httpd.apache.org/docs-2.0/vhosts/name-based.html

Try changing
<VirtualHost sharkattack.homelinux.com>
to
<VirtualHost 192.168.1.50>
or put whatever IP is listening for that website.

HTH
Aman Raheja

> 2.  I also have  VirtualHost section at the bottom for a second 
> website on the same system.  It that set correctly?  Notice the 
> Document Root section.  Is that overridden if there is another 
> DocumentRoot defined in the conf file?  I am not getting the correct 
> page.  I get one of the error pages.
>  
> Thanks.
> =====
>  <>
> #
> BrowserMatch "Microsoft Data Access Internet Publishing Provider" 
> redirect-carefully
> BrowserMatch "^WebDrive" redirect-carefully
> NameVirtualHost 192.168.1.50 <> 
> <VirtualHost sharkattack.homelinux.com>
> ServerAdmin webmaster@gwshark.homelinux.com 
> <mailto:webmaster@gwshark.homelinux.com>
> DocumentRoot /var/www/gwshark
> ServerName   shark
> </VirtualHost>
> =====


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message