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.

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

Aug 20, 2011 2:27 AM in response to CaLiFoRNiAWEBER

Make sure you are adding it to the top very top --->


Should look like this...


NameVirtualHost *:80

#

# Mac OS ... .......


Turn off web. (wait until it completes).. turn on web.. - should work and should be able to add additonal sites

any idea why that works, when the virtual hosts section of httpd.conf doesnt work? So I now have wikis working again on my main domain (eg the www.mydomain.com) and a sub domain now points to the correct folder on the server to pick up content (eg william.mydomain.com) BUT its not resolving the text as html its actually echoing the content of the .html page to the screen.


<html>

<body>

This is a test.

</body>

</html>

in the body of the html file is displaying as above in the browser

Sep 26, 2011 1:54 PM in response to SGlazier

Has anyone resolved this issue of the services not working?


I've reinstalled Lion Server twice and every time I get the response that iCal is not turned on.


Frankly if this is what an easy server is to Apple then they can tell that to those of us who find that it's broken out of the box.


I guess you get what you pay for and since the cost isn't expensive, it's to be expected but that it still isn't working over 2 months after release is absolutely unacceptable.

Sep 26, 2011 10:10 PM in response to dpasarchi

I have had success recovering services a few times. I don't know exactly what the one item that works each time, but here is my typical recovery steps:


1. Set all certificates to None using Server.app (wait till it completes).

2. Repair disk permissions.

3. Restore /var/pgsql from the last known working instance.

4. Restart 2-5 times, by this time pgsql should be starting on its own again, and your services should have recovered themselves.

5. Make sure DNS service is running with Server Admin.app, seems to be required for mail and wiki to startup.

6. Choose the correct certificates for each service again.

7. Reduce mail security required for incoming SMTP connections to allow incoming mail with Server Admin.app.


My issues are all typically spawned from pgsql not booting, or rather claiming to get a shutdown request immediately after starting up. Once I have it running it stays running until I reboot or install updates again. Its been up for over 20 days now.


Good luck! I really hope that Apple fixes all these issues in the next update... it would be nice to be able to reboot it whenever and have reliable services. I still have yet to get the profile manager and podcast manager running. They seem to be the cause of some failures when I first tried them out.

Nov 15, 2011 12:54 PM in response to SGlazier

Okay, this is how I got it working:


Add the 0000_MoreTesting.conf as said earlier (with one line NameVirtualHost *:80)

If you restart (apachectl restart or graceful won't do it, you need to do it in the server app!) you will get a forbidden message.

To prevent that, change Override None to Override All in the respective conf file (not sure if the default virtual .conf file will do or is overwritten by the app).


Restart the webserver using the server app. All good!


For me DNS resolving didn't seem to work, so I added it to my hosts file on my MBP. (My server is running on a MacMini in the same network).


I did all this in 10.7.2.

Multiple websites

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