2129
Comment:
|
2131
|
Deletions are marked like this. | Additions are marked like this. |
Line 30: | Line 30: |
~+`cd public_html`+~ ~+`chmod a+r index.html`+~ |
~+`cd public_html`+~<<BR>> ~+`chmod a+r index.html`+~<<BR>> |
Line 41: | Line 41: |
'''~+`http://www.doc.ic.ac.uk/~username/`+~''' | ~+`http://www.doc.ic.ac.uk/~username/`+~ |
Line 47: | Line 47: |
'''~+`http://www.doc.ic.ac.uk/~username/somefile.html`+~''' | ~+`http://www.doc.ic.ac.uk/~username/somefile.html`+~ |
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