On Fri, May 28, 2004 at 11:03:08PM +1000, Ben Donohue wrote: > > 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?
possibly because you don't have any virtuals for http://www.icafe.com.au/ or http://www.pamphlets.com.au/ ie. you've configured virtuals for http://icafe.com.au and http://pamphlets.com.au/. But http://www.icafe.com.au/ is the URL for a different domain, and apache doesn't know anything special about it, so it serves out its default content. Try adding a ServerAlias for *.icafe.com.au: <VirtualHost *> ServerName icafe.com.au ServerAlias *.icafe.com.au # ... the rest of the config ... </VirtualHost> Conrad. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
