SLAC 15 Dec 1995
A quick, no-frills way to provide information is to
place pre-existing plain-text, Postscript, or even PDF documents in your WWW
or its subdirectories. (See the
for obtaining a
If the server
doesn't find a file called
index.html in your
groupcode directory, it
will display a navigable list of all the files it finds there.
For example, here's what's currently in the
Accelerator Department's directory.
If, on the other hand, you'd like to give your pages a more Web-like look and feel, create regular Web pages using the HTML formatting language. Usually, you will want to create a main or "home" page for your group:
Then you need to send email to
email@example.com to obtain production AFS WWW disk space
for your group's pages.
The space will be usually be named
where the last part,
groupcode, is your
group's code, e.g.,
You should let
www-admin know who should be authorized to write
into this and any sub-directories your group establishes
and who should be able to control that list.
For backup, provide at least two usernames.
If you expect to install files that total more than 6 Megabytes, let
www-admin know that, too, for space planning purposes.
www-admin will setup two AFS privilege groups and
their initial membership and associate them with your space via its
Access Control List
These groups are
g-www:g-groupcode is the AFS group of usernames that
may write into your group's directory(ies) and
g-www:owner-g-groupcode is the AFS group of usernames that
may change the names in
From your group's directory,
fs listacl command to see what groups are in your ACL.
pts member groupcode command to see who's in
a particular AFS group in your ACL, e.g.,
pts member g-www:g-ad.
To learn more about AFS, check out the SLAC
"Introduction to AFS."
Once your group's directory is set up, login to the SLAC UNIX system and put your home page and the other documents you choose into this Web directory. Or you may create sub-directories and put documents there.
mkdir command to create the sub-directories.
For example, to create a new sub-directory
addo for group
cd /afs/slac/www/grp/ad mkdir addo ls -l
If you want WWW access to the documents to be restricted only to those logged
in to the
SLAC domain (actually IP number 134.79), put the files in a subdirectory named
But see AFS Considerations below.
Your group's home page can now be accessed with the
where homepage is usually
To understand more about the naming conventions and other aspects of WWW space at SLAC, read the document, " Revised WWW URL and File Naming Scheme".
By default, your AFS directory at SLAC and any of its sub-directories are set up so that (a) anyone at SLAC and (b) anyone in the world who is authenticated to AFS within the SLAC cell can:
cat, or other system command.
This means that by default the files are not readable by anyone in the world with AFS privileges.
Files restricted in WWW to people logged on to a host
in the SLAC domain
(actually to an IP address beginning with 134.79)
are readable, not only to anyone at SLAC, but also
to anyone in the world authenticated to the SLAC AFS cell.
The files may even be displayed through Web browsers by using a
:file (rather than
To specify the URL for your group directory,
For example, if you want to provide a link to the file
/grp/ad/AD.html for the URL.
If you want to link to another file in the same directory as, say, your group's home
page, use a format like
substituting your specific file name.
For more information on relative URL, check out the source for a page like "SLAC WWW Resources." Or take a look at the Internet standards document, RFC 1808.
Fetch. It has online help.
establish a connection with UNIX, use the hostname
unixhub.slac.stanford.edu and set the directory to
E.g., if your
ad, then set the directory to:
Make sure your token is still valid.
Then use the
Fetch Put function to get the file from the Mac and put it into the
UNIX AFS directory.
Tailoring Your Mac for SLAC
for information on how to obtain the
.gifrequires changing the
Fetchdefaults. Make sure you select
raw datafor the format.
At the other end of the spectrum, you may also create pages of interest to yourself and
a few colleagues.
If you work on UNIX and especially if these are test versions or transient pages,
you should put them in a sub-directory named
public_html under your home
Joan Winters, Les Cottrell