Breadcrumb
Personal pages on the School Website
Your personal space is accessible from the folder public_html in your V drive (or in the same directory on hyperion.maths.bris.ac.uk you are a Linux user). It is available from http://www.maths.bris.ac.uk/~<username>/.
You may download some template HTML files which can be modified and placed in your personal webspace. Please try to ensure that your personal webpages retain as much of the original style as possible in order to provide a coherent browsing experience for the visitor.
Download template files
Use these files as a template for your personal webpages. Modify them as necessary but please try to keep the style consistent.
Modifying the templates
The template files are similar, the only difference being that template2.html allows you to add a title in the header (where "School of Mathematics" is displayed on this page). The page you wish to be displayed first in your webspace (home page) should be renamed to index.html.
Modifications to the templates should be reasonably self-explanatory, if you take the approach of copying blocks of mark-up and performing simple find and replace. The template files contain two markers denoting where the code for the main content pane begins and ends, the first marker is:
<!-- ************* ADD YOUR CONTENT HERE ************* -->
Below here you will find examples of all the different styles it is possible to apply. It is recommended that you keep a copy of the original template file and refer to it to copy blocks of code in order to create the desired styles on your page.
Please keep in mind accessibility and validity when modifying your pages, there is plenty of material available on the web regarding web standards. You can ensure that your code is valid XHTML if you are using Firefox by installing the Tidy validator plug-in. Using a good text editor with HTML highlighting can also help a lot to ensure that all your tags are closed.
Note: In order to get the colour of the navigation buttons to change you must ensure that the list item has been assigned the class "current": <li class="current"> Button 1 </li> .
Protecting personal pages on the School Website
If you need password protection in a directory you can use two methods:
Users from outside the university:
Edit a .htaccess file in the directory to be secured.
AuthType Basic
AuthUserFile /home/maxxx/secure_directory/htpasswd.users
AuthName "Restricted Directory"
require valid-user
satisfy any
This .htaccess file will work as soon as the htpasswd.users file is created in the directory. To create it do the following.
/usr/local/apache/bin/htpasswd -c htpasswd.users maxxx
You will be prompted for a password which you will be prompted to repeat. Do NOT use your login password for the system. A file called htpasswd.users will be created containing the name and encrypted password. If you wish to add other people to this list omit the -c option in future runs.
Users from within the university using UOB password:
Put the following in a ".htaccess" file in the directory you wish to protect.
SSLRequireSSL
AuthType KerberosV5
AuthName "Name of Area"
require user <username1>@ADS.BRIS.AC.UK \ <username2>@ADS.BRIS.AC.UK
Where Authname is a unique tag that is passed to the browser and username1 and username2 are UOB usernames. The entries are seperated by a space. You may add as many usernames as needed. If you are happy to give access to anyone in the University then put
require valid-user
in the "require" section.
