Re: NameVirtualHost question

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

 



On 17.09.07 13:29, Néstor Boscán wrote:
> I have a server that has an Apache Server 1.3. The server only has 1 IP and
> can be access using two differente names server1 and server2. I would like
> to create a VirtualHost for each name that sets the ServerName. Now I tried
> the following
>  
> NameVirtualHost ip:80
> <VirtualHost server1:80>
> <VirtualHost server2:80>

NameVirtualHost and VirtualHost should have the same argument.

> And it doesn't work. It will not use the VirtualHosts. I also tried this:

> NameVirtualHost ip:80

> <VirtualHost ip:80>
> ServerName server1

> <VirtualHost ip:80>
> ServerName server2

> And again it doesn't work.

this should work, unless there's configuration error elsewhere.

-- 
Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
10 GOTO 10 : REM (C) Bill Gates 1998, All Rights Reserved!

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