Your web site is made up of a group of files and directories, much like your Documents folder on your home computer. Only in this case, everyone in the world can see some of your files. To give you an idea of how the directories and files work, we'll look at a few illustrations.
Contents of /home/________/.
Above, you can see an example of the files and directories in your site. There are three main directories to be concerned with:
/home/________/ - This is your home directory. All of your files are stored within this directory. Files placed directly in this directory will not be visible on the internet.
/home/________/public_ftp/ - This is the directory used for anonymous FTP access. Any files in this directory can be downloaded by anyone if anonymous FTP access is enabled.
/home/________/public_html/ (www) - The public_html directory contains the files for your site. Files in public_html and any subdirectories of public_html will be able to be viewed by anyone on the internet.. (/home/________/www/ is the same directory as /home/________/public_html/).
When someone views a directory in your public_html area, they will see the index page for that directory. When creating your index page, you should use one of the following names (the first one found will be shown if the visitor doesn't type in a specific page in their URL):index.html.varindex.htmindex.htmlindex.shtmlindex.xhtmlindex.wmlindex.perlindex.plindex.plxindex.pplindex.cgiindex.jspindex.jsindex.jpindex.php4index.php3index.phpindex.phtmldefault.htmdefault.htmlhome.htmindex.php5Default.htmlDefault.htmhome.html
Warning: When adding files to your
site, it is important that you add them in the right place. For example,
you will need to place files that you wish to be visible on the
internet in public_html or a subdirectory of public_html. If you placed
them in /home/________/ for example, no one will be able to view them.
Note that the dashes represented above, as in /home/________/, that is where your server space name would be inserted. In this tutorial, we have left that section blank.