[KLUG Members] trouble playing with apache virtual sites

bill members@kalamazoolinux.org
Fri, 20 Feb 2004 09:24:02 -0500


Richard Harding wrote:

> I am playing around with a spare linux box at home trying to see how 
> virtual sites work on apache. I am using no-ip.info to get a name for my 
> DHCP cable connection at home.

" a name" not three names?  Three sites on one (one ip address) box 
would need three DNS records pointed to the same IP.  You'd need to set 
up three records at your dns (no-ip).

> I have found several how-tos to get virutal sites up and running on 
> apache, but I can't find anything that tells me how I should be setting 
> up the DNS sides of things.
> 
> I have three sites, main (deuce868.no-ip.info), 
> site1.deuce868.no-ip.info, and site2.deuce868.no-ip.info.

Don't know how no-ip.info is set up, but did you set those up on no-ip 
or in apache.conf? (You'd need to set those up on both).

> If I set in my hosts file on a windows machine on my home network and 
> add all three sites with the internal IP of the machine Apache will 
> serve the three different sites just fine. 

Using hosts bypasses the need for remote DNS.  So your Apache is 
probably set up fine.

> Now when outsite the network 
> the only site to come up is the main one. site1 and site2 don't work.

Define "don't work"

> What do I need to do to get site1 and site2 to resolve properly. I am 
> guess the request is just never getting to apache and thus it is not a 
> apache config prob.
> 
> I do have BIND set up on this machine, but only for internal DNS info.
> 
> Thanks for the help.
> 
> Rick
> _______________________________________________
> Members mailing list
> Members@kalamazoolinux.org
> 
> 
>