Re: [users@httpd] Virtual host question- Webserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux