On Tue, 08 May 2001 12:32:26 +0100, Colin McKinnon <[EMAIL PROTECTED]> wrote:
> I've got a network of machines - say 10.1.1.0/24. My ISP has supplied a
> real static IP address to one box which they name Server.mynet.com of
> 196.168.10.2 I call my internal network mynet.com. I run DNS for my
> internal network.....
> 
> 
>         --+-------/ ISP /------- internet
>           |
>           | 196.168.10.2
>      +----+-----+
>      |          |
>      |          |
>      +----+-----+
>           | 10.1.1.86
>           |
>    -------+--------------10.1.1.0/24
> 
> On my internal network 10.1.1.86 is called linux1.mynet.com
> 
> This works OK except that the machine in the middle appears to be different
> hosts depending on which side you're looking from.
> 
> How can I get Apache to respond to connections on both names (server /
> linux1) and associate them with the same website (i.e. not a virtual host).
> 

You could set them up as virtual hosts, and set the DocumentRoot on each to the same 
dir.

> To make matters more complicated, I am using SSL on the webserver, so the
> request must match the name on the certificate.

Not sure. You could try setting the ServerName directive on both virtual hosts to what 
the certificate expects.

> 
> Unfortunately 196.168.10.2 is not always up so I can't simply redirect all
> internal traffic to server.mynet.com using http since the address may not
> always be available. I can't redirect external traffic to linux1, because
> it is on a private subnet (i.e. the ISP won't be able to route it).
> 
> That leaves the option of telling the local DNS that server.mynet.com is
> really at 10.1.1.86, but what happens when a program tries to check the
> name of 196.169.10.2 ? Obviously, my DNS doesn't know - if it goes away and
> checks on the internet, it will find server.mynet.com - but it already
> knows that server.mynet.com is 10.1.1.86.....
> 
> So I suppose my question is, how does Bind cope with hosts which have
> multiple addresses?
> 

Isn't that what the multi option is for in host.conf?
But I don't think that's what you're asking. :-)

> Colin

HTH

Lawrence
--------------------------------------------------------------------
http://www.lug.org.uk                   http://www.linuxportal.co.uk
http://www.linuxjob.co.uk               http://www.linuxshop.co.uk
--------------------------------------------------------------------

Reply via email to