Comprehensive Web hosting: File system layout

Directory layout

When a new site is created, a default set of directories is created to host your site. Theses directories include:

logs/
home/
htdocs/
cgi/
cron/

Some or all of these directories will be available when you log in to access.nsms.ox.ac.uk under a directory named after the primary site name. For instance, if you asked for a site with the primary name of www.unit.ox.ac.uk, then as you login you will see in your home directory:

access:~$ ls
www.unit.ox.ac.uk

and then underneath this

access:~$ cd www.unit.ox.ac.uk
access:~$ ls
logs home htdocs cron

Note that the document root for the site is the htdocs directory, and files placed outside of this will not be directly accessible over the internet.

Storage restrictions

Each website is assigned to a storage band (see our main website for details).  You can ask for this band to be changed at any time, but note that this may also affect the amount you are charged.

We have implemented the storage bands as quotas; each band has a quota set, but you can briefly go over these limits for short periods of time. Note that once you go over your limit by too much or for too long, then you will not be able to create new files or directories. If you are over your limit you can either remove files or directories, or ask to go up to the next storage band.
 
There is also a limit on the maximum number of files that your site can have; this is to protect the web server from malicious activity, and to prevent one site from causing issues with other sites hosted on the same server.

We are working on implementing quota warnings to warn the site owner when the site is approaching the limits.

File permissions

Each website is associated with an underlying username for that site, and all executable content is run as this user. All files associated with the web site are owned by this user, so it should not be necessary to change the permissions on any files to make them readable or writable. Static files (i.e. images and stylesheets) need to be readable by any user so that the web server itself can read the files (as it is only executables that run as the site user). 

As noted above, the home directory is outside of the document root, and so may be a good place to store files that should not be directly accessible via the internet. This site home directory is included within the website storage quota, and is different to your personal home directory on access.nsms.ox.ac.uk.

Backups

We use the University wide HFS backup service to backup your site; this includes the on-disk files and any databases that are associated with your site. Backups are run daily, 6 days out of 7, following the normal HFS scheduling. This backup includes the site directories; logs/ home/ htdocs/ cgi/ and cron/, but does not include any other added files or folders, these remain within your home directory on access.nsms.ox.ac.uk.

Please contact us if you need files or directories from your site restored.

Service area: 

Written by IT Services. Latest revision 27 May 2016