A few things:
A directory on your server is not any indication of a unique "site"...
http://www.google.com/gmail is the gmail directory on the
www.google.com site
http://gmail.google.com is a seperate sub-domain in the google.com domain
(these two URLs happen to take you to the same destination, but that is due to the way they were set up and not an inherent fact of URLs.)
Quote:
I read something about changing something in the dns server like
www1 IN A first_server_ip
www2 IN A second_server_ip
But how could i do this if i only have one external static ip?
|
What you read about is probably what is called Round Robin DNS and it's actually:
Code:
www IN A first_server_ip
www IN A second_server_ip
Either way, this can't be done with only one "public" IP address.
The ways I can think of to solve your dilema include:
-Set up redirection of port 80 to one webserver and another port to the other webserver.
-Set up an alias on one webserver that points to the other one (that's in the link timmeke posted) so that something like
www.thisdomain.com/thatdirectory aliases to the other server
-Set up two domain names that resolve to the same IP and get your external facing firewall to do host based routing (I've never done this, I just understand the concept and I'd bet something could be added to iptables/netfilter to get it to do this)
-Buy a hardware based load balancing solution ($$$).