Personal web pages
This page covers the personal web page service operated by CSG for DoC staff and students. The commands listed here should be run on a DoC Linux workstation or remote access server.
Note: All pages hosted on DoC or other College resources must be non-political, legal, and must not bring the Department or the College into disrepute. Your personal web page must contain a link back to the Department's home page. In short, any content you publish via our resources must abide by the Departmental and College regulations.
Enabling your personal web pages
DoC runs the Apache web server, version 2.2.22.
Make your home directory publicly accessible (but not readable!):
chmod a+x ~
Note: On directories, the permissions set by the chmod command are interpreted as follows:
r = permission to get a directory listing
w = permission to create and delete files in the directory
x = permission to access files in the directory provided the name of the files are known
If it doesn't already exist, create a directory called public_html:
mkdir public_html
- Make this subdirectory publicly accessible:
chmod a+x public_html
Create a file called index.html within this directory and make this readable by all:
cd public_html
chmod a+r index.html
This will be your main personal web page (a.k.a. your "home page").- Then for each file you have created that you want to make available on the web:
chmod a+r filename
Your main personal web page, index.html, will then be visible around the world as the following URL:
http://www.doc.ic.ac.uk/~username/
The webserver automatically maps URLs of the form http://www.doc.ic.ac.uk/~username/X to the Unix path /homes/username/public_html/X.
Other web pages in your public_html directory area will be visible as URLs of the form:
http://www.doc.ic.ac.uk/~username/somefile.html
Feel free to create subdirectories inside public_html for each web-based project you want', set their permissions exactly the same way.
When you do a group project organised by your Lab Organiser, a group is created with the right members, and a group project area is created, stored inside /vol/project. For example, 2014-15 first year Topics groups are stored in By default, your entire group project directory (eg. We strongly recommend that you prevent accidental exposure of private information via the web by adding a very restrictive .htaccess file to the top level directory to disallow web browsing of your entire group project directory. For instance, a member of g14163xx might do the following: Then you could explicitly open up a subdirectory to the web via a similar .htaccess ("allow from all") in that directory.. For instance: which allows access to Permissions are also important in group directories, essentially all members of the group must be able to write files and create new directories in there, and the web server must be able to read all the files. We recommend the following: .We recommend the following simple rules for keeping permissions in your group project directory sensible:
CSG do not advise editing web pages on Windows due to incompatibilities between line-endings on Windows and Unix. More precisely, If you must edit plain HTML web pages on Windows, proceed as follows: Right click on Select \\SERVERNAME\public_html Tick Click Note the drive letter that the folder is allocated to, and always save web pages to this location. The reason for this is that the user files saved to your home directory via the H: drive is private. Files saved directly to the public_html share are publicly readable.
We have two more detailed guides about CGI scripts: and a guide on: Group project web pages
cd /vol/project/2014/363/g14163xx
echo "deny from all" > .htaccess
mkdir web
echo "allow from all" > web/.htaccess
Editing your personal web pages under Windows
My Computer.
Reconnect at logon. For more info