Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com Jan 19 '12 at 3:11

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

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 '12 at 3:08
    
grep –  Matt Ball Jan 19 '12 at 3:09
1  
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
show 2 more comments

1 Answer 1

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
add comment

Your Answer

 
discard

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.