So what's the deal, are we all doing something wrong that is preventing multiple sites from working or is this a bug? If it's a bug, what the heck is going on at Apple, why wouldn't they have fixed this by now with an update?
Currently Being ModeratedAug 20, 2011 2:27 AM (in response to CaLiFoRNiAWEBER)
Make sure you are adding it to the top very top --->
Should look like this...
# 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.
This is a test.
in the body of the html file is displaying as above in the browser
Ok the html rendering as plain text?
Because I was using a cocoa writer instead of pico, and the cocoa writer was wrapping all my text with markup.
I've re-edited the page in pico and its working as intended!
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.
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.
Currently Being ModeratedNov 9, 2011 8:29 AM (in response to Brian S. Campbell)
What is the best way to setup the server. Host name for Internet or Host name for local Network.
I just want to host mail a web site and podcasts.
I have registered example.com and want that to point to my mac mini server via port forwarding and NAT.
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.