|
All of your web accessable content is held within the www directory
in your home directory. In order to handle the possibility of multiple
websites on your account, we have devised a setup where every one of your
websites will have its own directory within your www directory. This
might mean that you have only one directory in your www directory, or
you might have many. This is different from a setup where your main
website's content is kept directly in the www directory. Here is an
example of how suso.org www directories are setup:
/home/username/-+
|--.bashrc
|--.bash_history
|--private/-+
| |--mysqlinfo
| \--.htpasswd
|--logs/-+
| |--www.yourwebsite.com-access_log
| |--www.yourwebsite.com-error_log
| |--www.yourwebsite.com-access_log.2005.04
| \--www.yourwebsite.com-error_log.2005.04
|
|--other home directory files
|
\--www/-+
|--www.yourwebsite.com/-+
| |--.htaccess
| |--stats/
| |--index.html
| \--images/
|
|--www.anotherwebsite.com/
\--www.yetanotherwebsite.com/
In the diagram above, you'll see how the content for www.yourwebsite.com
is kept inside the directory called www.yourwebsite.com. The same
goes for other hostnames that you use. Regardless of which domain or
hostname they use, each different hostname that has its own website
will have its own directory.
To give you some insight on why we did this, in the past, it was common
for web hosting providers to put the content of your first website
in your www directory and then if you had another website they would
create a directory with a simple name like 'anotherwebsite' inside
of your www directory. This created a lot of clutter and led to problems
like being able to access site B through a subdirectory of site A (ie.
http://www.yourwebsite.com/anothersite/)
Even if you have only one site your www directory will still be setup in
this fashion.
Modified: 2005-06-06 04:22:09
|