Multiple websites

It seems pretty clear in the Server app how to configure hosting multiple websites but it doesn't seem to work. No matter what I put in, requests just go to the default Mac OS X Server site. Anyone had luck with this?

Mac mini, Mac OS X (10.6.7), OS X Server

Posted on Jul 20, 2011 12:42 PM

Reply
66 replies

Jul 20, 2011 6:53 PM in response to SGlazier

looks like they forgot to include the NameVirtualHost directive in any of the config files...


Judging by the readme located at /etc/apache2 the directive should be generated into /etc/apache2/sites/virtual_host_global.conf but it isn't for some reason


if you create a file called /etc/apache2/sites/00000_MoreTestingRequired.conf containing a single line:-

NameVirtualHost *:80


then restart apache then virtual hosts start working properly

Jul 20, 2011 7:47 PM in response to Seemingly Absent

"if you create a file called /etc/apache2/sites/00000_MoreTestingRequired.conf containing a single line:-

NameVirtualHost *:80


then restart apache then virtual hosts start working properly"



That does fix the problem. I'm glad someone had the time to RTFM. I just wish that the Apple developers had done the same. Pretty easy to fix, pretty hard to miss. I don't think they tested this at all.


All my sites are working now.


Thanks

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Multiple websites

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