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.

Total nightmare

All I'm trying to do is get the web server to work. I can't even get localhost to return a web page. I'm usually a passionate defender of Apple, but they really screwed the pooch on this one. The documentation is totally lacking too. Everything was working fine under Snow Leopard. Now, it's broken. And I can't even fix it because the tools have all changed and the old options aren't even there.


At this point, all I want is a web page - any page - to be served up by the web server. Anything at all.


In Server, the server is on. In admin tools, firewall is off, dns is off, everything is off.


I created a web site and pointed to an existing folder with an index.html file. In Server, there are actually two entries, one for port 80 and one for port 443.


In Safari, if I try to go to localhost, nothing happens. I just get an error message that safari can't connect to localhost. Great. Really helpful.


I can ping localhost.


Again, all I want is for it work at all. Forget doing the reverse proxy I had before upgrading to Lion wiped it out. Just something. Anything.

Mac mini, Mac OS X (10.7)

Posted on Jul 21, 2011 10:25 PM

Reply
5 replies

Jul 22, 2011 9:07 PM in response to Jupeman

Yeah, unfortunately, I'm not really sure. I don't really know what goes on in httpd.conf - luckily I had someone help me. At a high level, he copied bits from the old pre-Lion httpd.conf file (which is saved next to the new one) into the new httpd.conf file created with the upgrade. But that was the result of an hour of mucking around.


I gather Server.app just reads in from (and modifies) the various conf files that you can directly edit manually. In other words, I gather there's no risk to messing up server.app by bypassing it and editing files directly.


So, I'd forget server.app and just start learning httpd.conf, editing it by hand (you'll want to give yourself read/write permisson on the folder containing httpd.conf, temporarily. Or, if you're doing it from the command line, edit it using sudo.)

Jul 22, 2011 9:09 PM in response to switchbacker

I don't know what the differences are in the server management tools between Lion and SL as I haven't upgraded my servers yet, but the Lion version of Server Admin appears to be the same as the SL version. You should be able to use it to manage your web server as before. Whatever changes you make in Server Admin will be written into the httpd.conf file. You need to make sure that that the path to the web site directory is correct in the Server Admin settings for each web site you are hosting.

Total nightmare

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