Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, I was playing around with Java sockets, servers and streams, the other day, and I decided, purely out of curiosity, expecting no good results, to open Google Chrome and navigate to, and lo and behold, I come across an actual page! The page source is <html><body><h1>It works!</h1></body></html>

I got hit with an epiphany that I could easily start playing around with HTML and possibly create my own website if I could find what was causing this page to come up, and where on my computer the page is located. I was searching for a possible installation that I might have made that would make my iMac (and Macbook; this thing happened on the iMac AND Macbook) act this way. So far, I've come up with the possibility of it being Eclipse EE, XCode, BBEdit, MonoDevelop (unlikely), LabView (also unlikely) or a few other programs. Those are the only developer programs I have installed that might have this effect. I don't have Apache.

Any help would be greatly appreciated.

share|improve this question

migrated from Oct 3 '11 at 21:02

This question came from our site for system and network administrators.

up vote 27 down vote accepted

This is default behavior in OSX when you enable the web server in the properties. You can find it in this control pane: enter image description here

share|improve this answer
Hey that's it! Thanks for the answer, I forgot I left that on. I just turned it off because I had forgotten to a while back when I was playing with settings. – Carter Pape Oct 3 '11 at 20:34
+1 for clear answer with screen shot – DanBeale Oct 3 '11 at 21:46

Newer versions of OS X might not have the option displayed in the Sharing panel, as is shown in Bart De Vos's answer. In that case, running this command from Terminal should stop it:

sudo apachectl stop

Based on my own experience, it shouldn't start up automatically after that, even after a system restart.

Or, if you want to start it:

sudo apachectl start
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .