Thai wrote:
> I have some web servers on my local network and I'd like every Internet
> users use them. My Linux gateway only has one IP addr (real address),
> but I can ask the DNS administrator to provide my Linux gateway some
> aliases like linux1.somewhere.net, linux2.somewhere.net, ... Now i'd
> like whenever someone accesses linux1.somewhere.net, he will get the
> reply from one of my local web server (having IP addr of 172.28.24.5),
> similarly when accessing linux2.somewhere.net, he'll go to another local
> web server (172.28.24.6) and so on.
> I know how to use rinetd, but it seems to me that we cannot use rinetd
> in this case, cause we only have one real IP addr.
You cannot do what you are trying to do. The gateway only gets to see
the IP address; it cannot tell which hostname it is meant to refer to.
The closest that you can come is to either:
1. allocate one port on the gateway for each server, so that you could
use e.g.
http://linux1.somewhere.net/
http://linux2.somewhere.net:8000/
http://linux3.somewhere.net:8001/
2. redirect all connections to port 80 on the gateway to a single web
server, which then handles all of the domains.
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]