How to configure Host-Header based VirtualHost in Apache? IIS works.

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

 



We have to host two web sites, for example, www.mytestsite1.com and www.mytestsite2.com with one computer and one IP address.

When user access the websites, the router will route the requests to my local IP address, for example 192.168.1.100.

 <VirtualHost 192.168.1.100>
ServerName www.mytestsite1.com
...
</VirtualHost>

<VirtualHost 192.168.1.100>
ServerName www.mytestsite2.com
...
</VirtualHost>

Apache route all of the requests to www.mytestsite1.com even we start the requests with http://www.mytestsite2.com.

In IIS, we can create websites with IP address, port and host header, the requests can be routed to the specified sites.


Does the Apache support the host header based virtual hosting?

If yes, can anyone show me how to do it?

If not, is there any software based router that can support host-header routing for http requests?





Thanks
Tom


Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.
[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