httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Bianchi <dav...@onlyforfun.net>
Subject Re: [users@httpd] Virtual host question- Webserver
Date Fri, 08 Jul 2005 12:15:06 GMT
Loganathan Ramasamy wrote:
> Let us assume my hostnames 2287 and 2288 . How should I go about
> creating a 
> 
> I tried the following is it correct ?

Nope. You should have something like:

NameVirtualHost *:80
<VirtualHost *:80>
    ServerName BLRD2287
    DocumentRoot /www/docs/dummy-host.example.com
</VirtualHost>
<VirtualHost *:80 >
    ServerName BLRD2288
    DocumentRoot /www/docs/dummy-host.example.com
</VirtualHost>

*AND* you should specify two different DocumentRoot (otherwise
both will point to the same data, then were is the advantage in
using VHosts?)

*IF* your Apache is listening on port 80. At this point you should
be able to get one or the other by using http://blrd2287/ or
http://blrd2288/

Davide


---------------------------------------------------------------------
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