On 8 Jun 99, at 8:48, Josh Estelle wrote about
"[Masq] Virtual Hosts":
| Perhaps this is not the best place to ask this... for I am not sure if
| it is affected at all by IP Masq'ing.
It isn't really, except that masquerading is the reason the situation
comes up.
| Right now I have a internal LAN operating on 10.x.x.x IPs and a Linux
| box acting as an Internet Gateway/Firewall (running IP masquerading)
| Right now the linux box connects to our LAN via an ethernet card and
| connects to the internet via a PPP connection over modem. Hopefully
| soon that modem is being replaced with a dedicated line w/ a permanent
| IP address.
|
| The linux box will also be serving as a primary DNS server for our
| domain and will also serve our website.
Primary *public* DNS server, serving up only those names you want the
world to know about (e.g. www.yourdomain.com, not
josh.yourdomain.com).
| What we would like to do is be able to have a different website pop up @
| www.ourdomain.com depending on if the person browsing the net is in our
| internal network, or if they are outside of our LAN. I did some test
| runs iwth Apache's virtual hosting capabilities which appeared to sort
| of work... but I have a feeling once our DNS server is fully operational
| it will always associate www.ourdomain.com with the external IP address
| of the linux box therefore always giving the external page, unless the
| internal user actually typed in the linux boxes internal IP address.
|
| Anyway, if anyone has any suggestions about how to go about this, or can
| point me to any resources I'd greatly appreciate it. Thanks.
It's not a problem. First, you need to split your DNS. You need an
*internal* DNS server that has a complete map of your 10.x.x.x
network. This is the one your internal machines will send queries
to.
With that in mind, you are free to have more than one name for the
gateway machine where Apache runs. Your inside users can use
"www.yourdomain.com" (getting the 10.x.x.x address) to see just what
the world sees, and they can use plain "www", or any other name you
choose to set up, to see the internal-only site.
- Fred Viles <mailto:[EMAIL PROTECTED]>
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
http://tiffany.indyramp.com/mailman/listinfo/masq
Admin requests can be handled by web (above) or [EMAIL PROTECTED]