Users are strongly encouraged to read the bboard "andrew.contributed" for current updates about the server.
Once you have a Home Page written, you must place it in a subdirectory of your Andrew account called "www". Important! The protections of this (www) directory must be "system:anyuser rl". To do this, use the command "fs sa ~/www system:anyuser rl".
NOTE!!! See the "protection overview" help file for more information about these commands. It is very important that you do not execute commands other people tell you to without understanding what you are doing (and the consequences of them).
"/afs/andrew/usr/{userid}/www" to
to
"/usr/{userid}".
For example, my home page is "/afs/andrew/usr/moose/www/homepage.html".
The server see this as "http://www.contrib.andrew.cmu.edu/usr/moose/homepage.html".
(Substitute your own userid and page name(s) to try this out :).
Alternately, you may shorten "/usr/{userid}" to "~{userid}", such as "http://www.contrib.andrew.cmu.edu/~moose/homepage.html".
Hint: The server considers the name "index" to be the default page. So if you use that name [with the tag .html, .htm, .shtml, whichever] you will be able to use "http://www.contrib.andrew.cmu.edu/~{userid}/" for your URL.
Once you have received your counter number, you use a tag like this:
NOTE: Your file must end in .shtml for the file to work. So if you are using a file called
"index.html" you MUST rename it to "index.shtml".
Hint: If you are currently using a different name than "index" for your main page and don't
wish to have everyone under the sun get a new URL, you may use a symbolic to point to your old
page name.
Example: My page was "homepage.html" but now I wish to use a counter. I use these steps to keep the file
"homepage.html" valid:
<a href="foo.map"><img src="foo.gif" alt="[map]" ismap></a>
Currently only CERN rectangles are being supported. Stay tuned for more formats to come.
First create a file called {filename}.response. The "Location" field should contain the new URL
you are forwarding to (URL B).
An example file is below:
Example: I want to redirect people who access my file foopage.html.
I use the following steps to link in my file, foopage.response, so that the server will forward.
You are visitor number <COUNTER TAG=0> to my home page.
% mv homepage.html homepage.shtml
% ln -s homepage.shtml homepage.html
Now both pages are valid, and point to the same file.
To use an imagemap:
Image maps must be called filename.map. An example of how to link one in your page follows, using the
name "foo" for the files:
![]()
To forward (redirect) a page:
The server will forward anything ending in .response. Use the following steps to have people accessing
URL A to automagically be moved to URL B.![]()
HTTP/1.0 301 Moved
Content-Type: text/html
Location: http://www.psc.edu/~ecf/
<HTML><HEAD><TITLE>Document Moved</TITLE></HEAD><BODY>
This document has moved to
<A HREF="http://www.psc.edu/~ecf/">http://www.psc.edu/~ecf/</A>
</BODY></HTML>
Next, you must link this file to the file you are forwarding -from- (URL A).
% mv foopage.html foopage.html.old
% ln -s foopage.response foopage.html
Now people who access foopage.html will be redirected by foopage.response. I am also free to remove
foopage.html.old now or save it, if the move is temporary.
If you have further questions, please feel free to contact me.
Please note that I only maintain the pages;
general questions about the server itself should go to the server
maintainer, Rob Earhart (rob+).Please try to remember that
we do this as volunteers and both have 'real' jobs that keep us busy
othertimes.