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?

link|improve this question

78% accept rate
1  
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 at 3:08
grep – Matt Ball Jan 19 at 3:09
1  
Haha. I like how you suggested that brute force method as a last resort. – Wintermute Jan 19 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 at 3:11
How do I find out what webserver is running? – Wintermute Jan 19 at 3:11
show 2 more comments
feedback

migrated from stackoverflow.com Jan 19 at 3:11

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

1 Answer

up vote 4 down vote accepted

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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