PDA

View Full Version : [ubuntu] localhost display



reddae
February 27th, 2011, 05:21 PM
So I realize that this is just about pointless, but this is simply out of curiosity.

When I point my browser to http://localhost/ it displays:
It works!

This is the default web page for this server.
The web server software is running but no content has been added, yet.




Is there any way to actually put content on this? For instance if I wanted to make http://localhost/ the default page in Firefox and have some kind of functionality to it, would that be possible?

AlfredVargas
February 27th, 2011, 05:50 PM
that's possible for all i know. all you have to do is to find the file and edit. it is usually found in htdocs.

SeijiSensei
February 27th, 2011, 06:48 PM
On Debian/Ubuntu, the web content is stored in the /var/www directory. You'll find the default index.html there.

You'll have major permission issues if you try to put files there as an ordinary user because the directory is owned by the "www-data" user that Apache runs as. There are solutions, like adding your username to the "www-data" group. Do a little searching here and on Google for details.