This article is from the the Brief Linux FAQ (BLFAQ) Maintained by Neil Zanella email@example.com
If you are running the Apache web server then look in /etc/httpd/conf/srm.conf . There you should see lines like:
UserDir public_html DirectoryIndex index.html index.shtml index.cgi
This means that your web files should be stored under a directory called ~/public_html and the first file to be read when a user accesses your web site with http://x1.x2.x3.x4/~<your-username> must be one of ~/index.html , ~/index.shtml , or ~/index.cgi . If you have an entry like:
in your /etc/hosts directory (ie. you have loopback enabled) than you can make sure everything is OK by pointing your browser to http://127.0.0.1/~<your-username> . Of course all files must have the right permissions, in particular you probably want to do a "chmod a+x ~/public_html" and a "chmod a+r index.html". If you are not on the Internet this enables you to edit a whole web site on a Linux box without having to be dialed up to your ISP. You can later upload the pages to the Internet. This method will pay off in browser speed when editing your web page.