Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: apache defaulting new vhost to first in list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: apache defaulting new vhost to first in list



At 7:19 PM -0400 8/25/05, Eben Goodman wrote:
I've been having some trouble adding new vhosts to apache. I'm running 10.3.7 (planning on going to 10.3.9 soon....) and apache 1.3.33. I add the new vhost in /etc/httpd/sites, and restart apache via serveradmin at the shell. But when I hit the address it goes to the first vhost in the list. Even after a reboot of the entire machine, it still goes to the first vhost in the sites directory. Has anyone else experienced this? I used to have the same problem on redhat, but after a few minutes it would start to resolve properly...

Apache defaults to using the first partial-matching virtual host it can find when it can't find the correct match. This is therefore expected behavior if you have a misconfiguration, and rather well known behavior.


However 'vhosts' are more correctly those virtual hosts set up using the mod_vhost_aliases module.
--


-dhan

------------------------------------------------------------------------
Dan Shoop                                                   AIM: iWiring
Systems & Networks Architect                     http://www.iwiring.net/
email@hidden                                 http://www.ustsvs.com/

pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF  12B1 7840 3BE7 3736 DE0B

iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >apache defaulting new vhost to first in list (From: Eben Goodman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.