Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

If I type "localhost" into a web browser address bar I get a page with the following information:

It works!

This is the default web page for this server.

The web server software is running but no content has been added, yet.

I know that this is a file somewhere on my computer. How can I find this file?

share|improve this question

migrated from Jan 19 '12 at 3:11

This question came from our site for professional and enthusiast programmers.

probably better to find out what webserver is running and look in the corresponding directories. If you are desperate though I guess you could do grep -r It\ works /* but it might take a while – Green Day Jan 19 '12 at 3:08
grep – Matt Ball Jan 19 '12 at 3:09
Haha. I like how you suggested that brute force method as a last resort. – Wintermute Jan 19 '12 at 3:10
There is a chance that "there is no spoon" (the message could be generated dynamically by a printf in the server). – dasblinkenlight Jan 19 '12 at 3:11
How do I find out what webserver is running? – Wintermute Jan 19 '12 at 3:11
up vote 4 down vote accepted

On Debian (and its derivatives, like Ubuntu), you can find this file in /var/www/index.html.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.