Personal Web Pages


Page Contents:

How to Create a Personal Homepage

Members of the School of Earth and Environment can create a personal web page on the homepages.see system.

By default, you will have a directory named public_html in your file space. For Linux users, this will be in your home directory at:

  ~/public_html

For Windows users, the directory will be at:

  Z:\public_html

The Z: drive space is automatically mapped when you log in to a Windows system in the Faculty of Environment, or if you connect to the University Desktop Anywhere system.

If the public_html directory does not exist, you can just create it yourself.

Your main / index page should be named index.html, and placed in the public_html directory. If your username is earxyz, the content will then be available at:

  http://homepages.see.leeds.ac.uk/~earxyz/

You can create additional pages and directories as you wish.

Making Files Available For Download

The homepages system can also be used to make files available for download, for example, if you wish to make some large documents available to an external colleague.

Indexing is enabled by default, so if the public_html (or another folder within public_html) does not contain an index.html file, it will list the directory content.

If you created a directory at ~/public_html/papers (or Z:\public_html\papers if using Windows), and copied some pdf files in to the directory, these would then be available at:

  http://homepages.see.leeds.ac.uk/~earxyz/papers/

Replacing earxyz with your own username.

If you wish, you can disable the indexing feature, by creating a file named .htaccess (on Windows, you may need use an editor such as Notepad++ to allow you save a file which has a name beginning with a .), containing:

  IndexIgnore *

This option cascades down from the directory where the .htaccess file is placed, so if it is placed in the public_html directory, this option will also affect all sub directories.

If the .htaccess file was placed in the public_html/papers sub directory, the option would only take effect within that directory (and any sub directories of papers).

Password Protecting Content

It is possible to password protect content within the public_html directory.

For example, if you created a directory at public_html/private, this content can be password protected by creating a file named .htaccess in the directory, with the following content (replace earxyz with your own username):

AuthUserFile /home/earxyz/public_html/private/.htpasswd
AuthType Basic
AuthName "Login Required"
Require valid-user

This specifies that a login is required to access the content, and points to the file which will contain the user name information, in this case, this should be a file named .htpasswd, within the same directory.

This page can be used to generate the .htpasswd content (available on campus only):

https://internal.environment.leeds.ac.uk/see/computing/htpasswd/

The content of the .htpasswd file may look similar to this:

user:$1$OGypXIpZ$NjHsCged9WEqF34AASIDX.

When using Windows to create files which have names beginning with a ., you may need to use an editor such as Notepad++ which supports saving such files.

Edit | Attach | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r8 - 30 Jul 2018 - earrr
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright 2008-2014 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.