Ok working out my own problem after posting... don't you hate that?
In the servername directive in apache httpd.conf I had to have www.domain.com.au for it to find it.
However now http://domain.com.au does not resolve.
How do you get both www.domain.com.au and domain.com.au to resolve at the same time to the same name based server? (Reliably)




Ben Donohue wrote:

Hi Slugs,

I've been beating my head against a brick wall over this and I thought I knew how to do this stuff.
I cannot get www.domain.com.au to resolve to the same as its domain.com.au on the web server.
The www just brings up the first apache webserver created on the server and not the correct virtual server web page.
however without www. in front of the domains it resolves to the correct virtual server on all web pages. So I thought this was a DNS issue.
I'm using name based virtual servers on RH Linux.


E.g. I've got 3 domains and I'm putting them on a new linux box running apache 2 ip=203.35.247.13
isidore.org.au
icafe.com.au
pamphlets.org.au


DNS on a different box is set to...
isidore.org.au.       IN A 203.35.247.13
www.isidore.org.au. IN CNAME isidore.org.au.

icafe.com.au.         IN A 203.35.247.13
www.icafe.com.au. IN CNAME icafe.com.au.

pamphlets.org.au.  IN A 203.35.247.13
www.pamphlets.org.au. IN CNAME pamphlets.org.au.

The apache server is set for three domains with three corrosponding directories called
/var/www/html/isidore.org.au
/var/www/html/icafe.com.au
/var/www/html/pamphlets.org.au


Even if I put in DNS www.icafe.com.au IN A 203.35.247.13 (for instance) it does not go to the correct virtual server but to the first virtual server created. (in this instance isidore.org.au).
i've restarted Apache, DNS and cleared cache files ad nauseum. also rebooted boxes! (old windows habit)


Any clues as to why the www makes things to go awry?
Ben



-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to