Re: [SLUG] speaking of DNS - apache web server.

From: Matt Miller (mmiller1@mptotalcare.com)
Date: Wed Dec 04 2002 - 16:24:03 EST


On Wed, 2002-12-04 at 16:08, Mike Manchester wrote:
> I have Apache running with two Virtual domains and a DNS server. What I
> would like to do is.
> From my internal network be able to go to the web sites using there
> domain name. ie.
> http://somename.internaldomain.com or
> http://othername.internaldomain.name
>
> So what I'm wondering is can you have two different zones in the DNS
> point to the same IP address? And if so when Apache receives the request
> from the browser will it go to the appreciate Virtual Domain?
>
> Does this make sense? It doesn't to me :)

Yup. It's called Named-Based Virtual Hosts.

>
> Anyway both domains have a domain named assigned to them and I can
> access the domains from outside my network from a machine not on my side
> of the router. I can get to one of them using the host name ie.
> http://tango.somename.internaldomain.com (tango being the host name)
> from my side of the router as it's defined in the DNS as a zone.
>
> What the goal of all this is. Is to be able to test each of the Virtual
> Domains from inside my network. As it stands now I can only get to the
> one in DNS.

Here's all the info you should need:
http://httpd.apache.org/docs/vhosts/name-based.html

-- 

Matt Miller Systems Administrator MP TotalCare gpg public key id: 08BC7B06

-- An improperly trained Samurai dies quickly.




This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:33:53 EDT