AAPT Web File Structure

Directory Structure

When you log into the web server, you will only see the part of the web server that relates to your web site; this is referred to as a "cage". Under the root directory of your cage you will see some files and directories that are used by the system as well as the ones you can access and use for your site. Below is some information on the directories that are relvant to you.

/www.example.com

NB. Replace www.example.com with your web site address. The subdirectories that contain your web site content and scripts belong here. If you have multiple web sites under the same cage, you will see one such directory for each.

/www.example.com/htdocs

This is where you upload your site's content - eg. HTML files, images, audio. etc. So, if a web browser requests http://www.example.com/file.html, the web server will look in this directory for file.html.

/www.example.com/cgi-bin

If you have any CGI scripts, you should upload them here. If a web browser requests http://www.example.com/cgi-bin/foo.cgi, the web server will execute foo.cgi in this directory.

/www.example.com/logs

The raw log files for your site (access logs and error logs) are stored here. They can be downloaded via FTP if you wish to analyse them or refer to them. Processed stats are stored in /www.example.com/htdocs/logs and can be accessed via http://www.example.com/logs/

/home/example

(Where example is your login name.) This is your home directory. This is the default directory you will see when you connect via FTP. Remember to navigate to the directories above before uploading content, as your home directory cannot be accessed from a web browser.

If you have files (eg. password files, config files, etc.) that should not be accessible over the web, you can store them here in your home directory, or in /www.example.com

Example Cage

[image showing home directory, htdocs and cgi-bin, as discussed above]




Copyright © AAPT Limited