httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Name-based Virtual Host
Date Tue, 07 Jun 2005 20:20:43 GMT
On 6/7/05, Beth Curotto <> wrote:
> I have setup 2 virtual hosts in httpd.conf  
> I have one external ip address being nat'd to an internal ip 
> I would like to use both websites directed to the same external, to then be
> handled by httpd.conf. 
> Am I on target so far? 
> One of the Virtual Hosts is for - 
> The DNS info for this site is set through Network Solutions. It is pointing
> to 
> But when I try website name it defaults to general/default DocumentRoot, not
> the one I set in the VirtualHost 
> This is my Virtual Host setup in httpd.conf ....... 
> NameVirtualHost 

The NameVirtualHost must refer to the IP address as seen from the
server -- behind the NAT.  To avoid this complication, simply use
NameVirtualHost *:80 as recommended by the docs.  Also use
<VirtualHost *:80> to match.

> # Virtual Host 1 
> <VirtualHost> 
>     DocumentRoot /var/www/html/mow 
>     ServerName 
>     ServerSignature email 
> </VirtualHost>    

> Can someone tell me where I am missing the boat. 

You are also missing a
inside the <VirtualHost> container.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message