Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Virtual Hosts Issues

I have a fresh install of Mac OS X 10.4 Server, and am having some problems setting up virtual hosts. I have 2 sites I'd like to host. Both are configured under the Sites tab of Web services. Both are pointing to different web folders. Both are using the same IP (the only IP this server has), and both are using port 80.

Regardless of which site I try to access, I always get the first sites default page. I've already checked to make sure it's not a caching issue, and I have turned on the vhost aliasmodule.

I've read through some old posts on this subject, but haven't found a solution that works yet. Any one know how to resolve this? Thanks!

Mac OS X (10.4.8)

Posted on Dec 21, 2006 7:30 PM

Reply
21 replies

Mar 7, 2007 8:08 AM in response to Apex81

You must have two of the same virtualhost settings. It might not show up in ServerAdmin (config errors never show up in ServerAdmin). Take a look in /etc/httpd/sites. The sitename.conf files should be in there. Make sure that there are no two files with the same sitename AND port number. In this case, there should be two files 000x default16080.conf and 000y default16080.conf.

OR did you touch the /etc/httpd/httpd.conf file by hand? You might have placed a VirtualHost directive in the wrong place or you may have added reference to other .conf files that include the same statements.

What you could do first, is to determine if you need WebPerfCache. If you don't know what it does, you probably don't need it. Go into ServerAdmin and turn it off for the site 1.1.1.1.

Virtual Hosts Issues

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.