NameVirtualHost question

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

 



Hi
 
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>
ServerName server1
...
</VirtualHost>
 
<VirtualHost server2:80>
ServerName server2
...
</VirtualHost>
 
And it doesn't work. It will not use the VirtualHosts. I also tried this:
 
 
NameVirtualHost ip:80
 
<VirtualHost ip:80>
ServerName server1
...
</VirtualHost>
 
<VirtualHost ip:80>
ServerName server2
...
</VirtualHost>
 
And again it doesn't work.
 
What is the correct configuration?

[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