Personal Web Pages
Last updated November 17, 2009
This document is intended for users in the CCIS community to describe how they can create their own personal world wide web pages.
We have our web server set up so that you can publish documents via the Web from your home directory. These pages will be served out to anyone on the Internet. It is likely that they will be found by web crawlers for search engines like Google, so be sure to only include information on these pages that you would like to be made public.
Creating And Serving A Home Page
- Create the directory
~/.www. You need to be sure that this directory has world read and search permissions, and that your home directory has least world search perms. (run:
chmod 755 ~/.www;chmod o+x ~– if you are uncertain).
- Create a file in that directory called
index.html. This file should be in HTML format. This document will be the first page remote users would normally access to enter your personal web tree.
- Poof: This document should now be available to you via the Web at the URL:
login_nameis replaced with your CCIS login name.
.wwwthat is part of the real filename (such as
/.www/index.html). It is a common mistake to confuse the real location of your HTML documents and the virtual URL that is used to access them. The http server maps the ‘top’ of your tree into your
/.wwwdirectory of your home directory automatically, so you should never include the
.wwwin your URLs. Primarily, this is intended a security measure – only files you specifically place into your physical
~/.wwware available via the web.
You can place any other html documents and certain other types of files, including images and sound files, into your
~/.www directory to make them available on the Web. One thing you should be aware of is how filenames are used to determine the file types. They are primarily recognized by the file suffixes. (For instance, a file whose name ends in .html or .htm is served as an HTML document, while a file whose name ends in .bin is served as an arbitrary binary file for download.)