httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blain Sadler <>
Subject Re: [users@httpd] Virtual hosting
Date Fri, 06 Aug 2004 15:10:42 GMT
As its name implies, name-based virtual hosting is NAME based.
This means that if a browser requests a document from 
it will get the virtual host for  if you request you will get the virtual host.  If you 
enter a name that is not defined in your configuration (like 
http://localhost) or an ip address, you will just get the first virtual 
host defined in your configuration.

if you want to be able to see both from localhost, just add 
and in your hosts file and point them to wrote:

> Dear friends,
> I am trying to host web sites on apache server 2 on windows a 
> service, On my local machine.Now plan to host web sites so that they 
> can be seen on internet.
> For  name based virtual hosting.I entered following directive.of first 
> web site domain, which is a registered domain.
> <VirtualHost>
>    NameVirtualHost *
>     <VirtualHost *>
>     ServerName <>
>     DocumentRoot /www/doctorbush
>     </VirtualHost>
>     <VirtualHost *>
>     ServerName <>
>     DocumentRoot /www/otherdomain
>     </VirtualHost>
> I have files for each site in separate directory, for example like
> c://homesite/website  is the directory where all the files of first 
> web site are locatted.
> As http://localhost I am seeing the files.
> I browsed
> couldn't get 
> the answer.
> What else directive I need to enter so that the directories of each 
> web site will be browsed over the internet.
> Guidance, please.

Blain Sadler
Software Developer
TradeDesk Software Corporation
8 Diane Drive
Essex Junction, VT 05452-4008
phone: (802) 655-2777

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