DoC Computing Support Group


Revision 2 as of 2008-06-17 14:07:02

Clear message

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.6.

  • 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 WWW:

    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/ to the Unix path /homes/username/public_html/.

  • 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