DoC Computing Support Group


Differences between revisions 1 and 2
Revision 1 as of 2008-06-17 14:04:31
Size: 2266
Editor: mwj
Comment:
Revision 2 as of 2008-06-17 14:07:02
Size: 2129
Editor: mwj
Comment:
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
   ~+`mkdir public_html`+~  ~+`mkdir public_html`+~
Line 26: Line 26:
   ~+`chmod a+x public_html`+~  ~+`chmod a+x public_html`+~
Line 30: Line 30:
   ~+`cd public_html`+~
   ~+`chmod a+r index.html`+~
 ~+`cd public_html`+~
 ~+`chmod a+r index.html`+~
Line 33: Line 33:
   This will be your main personal web page (a.k.a. your "home page").  This will be your main personal web page (a.k.a. your "home page").
Line 35: Line 35:
    * Then for each file you have created that you want to make available on the WWW:  * Then for each file you have created that you want to make available on the WWW:
Line 37: Line 37:
      chmod a+r filename  ~+`chmod a+r filename`+~
Line 39: Line 39:
    * Your main personal web page, index.html, will then be visible around the world as the following URL:  * Your main personal web page, ~+`index.html`+~, will then be visible around the world as the following URL:
Line 41: Line 41:
      http://www.doc.ic.ac.uk/~username/  '''~+`http://www.doc.ic.ac.uk/~username/`+~'''
Line 43: Line 43:
      The web server automatically maps URLs of the form http://www.doc.ic.ac.uk/~username/ to the Unix filesystem path /homes/username/public_html/index.html.  The webserver automatically maps URLs of the form ~+`http://www.doc.ic.ac.uk/~username/`+~ to the Unix path ~+`/homes/username/public_html/`+~.
Line 45: Line 45:
    * Other web pages in your public_html directory area will be visible as URLs of the form:  * Other web pages in your ~+`public_html`+~ directory area will be visible as URLs of the form:
Line 47: Line 47:
      http://www.doc.ic.ac.uk/~username/somefile.html

      Again, the webserver automatically maps each such URL to the filesystem path /homes/username/public_html/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

 
 

guides/web/personal (last edited 2018-10-27 08:55:57 by ldk)