# With this document, you define the name space that users see of your http
# server.

# See the tutorials at http://hoohoo.ncsa.uiuc.edu/docs/tutorials/ for
# more information.

# NCSA httpd (httpd@ncsa.uiuc.edu)


# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.

DocumentRoot /afs/sipb.mit.edu/project/www/root

# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is recieved.

UserDir www

# DirectoryIndex: Name of the file to use as a pre-written HTML
# directory index

DirectoryIndex index.html

# FancyIndexing is whether you want fancy directory indexing or standard

FancyIndexing on

# AddIcon tells the server which icon to show for different files or filename
# extensions

AddIconByType (TXT,/icons/text.xbm) text/*
AddIconByType (IMG,/icons/image.xbm) image/*
AddIconByType (SND,/icons/sound.xbm) audio/*
AddIcon /icons/movie.xbm .mpg .qt
AddIcon /icons/binary.xbm .bin

AddIcon /icons/back.xbm ..
AddIcon /icons/menu.xbm ^^DIRECTORY^^
AddIcon /icons/blank.xbm ^^BLANKICON^^

# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.

DefaultIcon /icons/unknown.xbm

# AddDescription allows you to place a short description after a file in
# server-generated indexes.
# Format: AddDescription "description" filename

# ReadmeName is the name of the README file the server will look for by
# default. Format: ReadmeName name
#
# The server will first look for name.html, include it if found, and it will
# then look for name and include it as plaintext if found.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes. 

ReadmeName README
HeaderName HEADER

# IndexIgnore is a set of filenames which directory indexing should ignore
# Format: IndexIgnore name1 name2...

IndexIgnore */.??* *~ *# */HEADER* */README*

# AccessFileName: The name of the file to look for in each directory
# for access control information.

AccessFileName .htaccess

# DefaultType is the default MIME type for documents which the server
# cannot find the type of from filename extensions.

DefaultType text/plain

# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
# Format: AddType type/subtype ext1
AddType application/x-httpd-cgi	.cgi .pl .sh

# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.

AddEncoding x-compress Z
AddEncoding x-gzip gz

# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Format: Redirect fakename url
#Redirect /dilbert http://www.mit.edu:8001/dilbert
#Redirect /services.html http://www.mit.edu:8001/services.html
# Aliases: Add here as many aliases as you need, up to 20. The format is 
# Alias fakename realname

Alias /icons/ /var/local/httpd/icons/

# ScriptAlias: This controls which directories contain server scripts.
# Format: ScriptAlias fakename realname

ScriptAlias /cgi-bin/ /var/local/httpd/cgi-bin/
ScriptAlias /cgi/ /var/local/httpd/cgi/

ScriptAlias /img /var/local/httpd/cgi/htimage
ScriptAlias /geo /var/local/httpd/cgi/geo
ScriptAlias /weather /var/local/httpd/cgi/weather
ScriptAlias /pinkdex /var/local/httpd/cgi/pinkdex
ScriptAlias /pinkdex_v /var/local/httpd/cgi/pinkdex_v
ScriptAlias /comment /var/local/httpd/cgi/comment
ScriptAlias /coolthing /var/local/httpd/cgi/coolthing
ScriptAlias /coollist /var/local/httpd/cgi/coollist
ScriptAlias /machine /var/local/httpd/cgi/machine
ScriptAlias /finger /var/local/httpd/cgi/finger
ScriptAlias /madlib /var/local/httpd/cgi/madlib

ScriptAlias /pgp-form-script.pl /var/local/httpd/cgi/pgp-form-script.pl

# this pair shouldn't be necessary, IMHO, but I don't know a way around it.
# Without the first one, "/home-pages.html" is routed through /cgi/home ...
Alias /home-pages.html /var/local/www/root/home-pages.html
ScriptAlias /home /var/local/httpd/cgi/home

ScriptAlias /zlocate /var/local/httpd/cgi/zlocate
ScriptAlias /zwrite /var/local/httpd/cgi/zwrite
ScriptAlias /cview /var/local/httpd/cgi/cview
ScriptAlias /callsign /var/local/httpd/cgi/callsign
ScriptAlias /calltest /var/local/httpd/cgi/calltest
ScriptAlias /stats /var/local/httpd/cgi/stats
# ScriptAlias /usmap /var/local/httpd/cgi/usmap

# ScriptAlias /user /var/local/httpd/cgi/master/home

ScriptAlias /testpinkdex /var/local/httpd/cgi/master/testpinkdex
ScriptAlias /testpinkdex_v /var/local/httpd/cgi/master/testpinkdex_v
ScriptAlias /takevote /var/local/httpd/cgi/master/takevote
ScriptAlias /dovote /var/local/httpd/cgi/master/dovote
ScriptAlias /tweb /var/local/httpd/cgi/trans

Redirect /dilbert.gif http://www.unitedmedia.com/comics/dilbert/todays_dilbert.gif
# Alias /dilbert.gif   /var/local/www/comics/dilbert.gif
Alias /dilbert1.gif /var/local/www/comics/dilbert1.gif
Alias /dilbert2.gif /var/local/www/comics/dilbert2.gif
Alias /dilbert3.gif /var/local/www/comics/dilbert3.gif
Alias /dilbert4.gif /var/local/www/comics/dilbert4.gif
Alias /dilbert5.gif /var/local/www/comics/dilbert5.gif
Alias /dilbert6.gif /var/local/www/comics/dilbert6.gif
Alias /dilbert-mini-1.gif /var/local/www/comics/dilbert-mini-1.gif
Alias /dilbert-mini-2.gif /var/local/www/comics/dilbert-mini-2.gif
Alias /dilbert-mini-3.gif /var/local/www/comics/dilbert-mini-3.gif
Alias /dilbert-mini-4.gif /var/local/www/comics/dilbert-mini-4.gif
Alias /dilbert-mini-5.gif /var/local/www/comics/dilbert-mini-5.gif
Alias /dilbert-mini-6.gif /var/local/www/comics/dilbert-mini-6.gif

Alias /bizarro.gif   /var/local/www/comics/bizarro.gif
Alias /bizarro1.gif /var/local/www/comics/bizarro1.gif
Alias /bizarro2.gif /var/local/www/comics/bizarro2.gif
Alias /bizarro3.gif /var/local/www/comics/bizarro3.gif
Alias /bizarro4.gif /var/local/www/comics/bizarro4.gif
Alias /bizarro5.gif /var/local/www/comics/bizarro5.gif
Alias /bizarro6.gif /var/local/www/comics/bizarro6.gif
Alias /bizarro-mini-1.gif /var/local/www/comics/bizarro-mini-1.gif
Alias /bizarro-mini-2.gif /var/local/www/comics/bizarro-mini-2.gif
Alias /bizarro-mini-3.gif /var/local/www/comics/bizarro-mini-3.gif
Alias /bizarro-mini-4.gif /var/local/www/comics/bizarro-mini-4.gif
Alias /bizarro-mini-5.gif /var/local/www/comics/bizarro-mini-5.gif
Alias /bizarro-mini-6.gif /var/local/www/comics/bizarro-mini-6.gif

Alias /worldviews.gif /var/local/www/comics/worldviews.gif
Alias /worldviews1.gif /var/local/www/comics/worldviews1.gif
Alias /worldviews2.gif /var/local/www/comics/worldviews2.gif
Alias /worldviews3.gif /var/local/www/comics/worldviews3.gif
Alias /worldviews4.gif /var/local/www/comics/worldviews4.gif
Alias /worldviews5.gif /var/local/www/comics/worldviews5.gif
Alias /worldviews6.gif /var/local/www/comics/worldviews6.gif
Alias /worldviews-mini-1.gif /var/local/www/comics/worldviews-mini-1.gif
Alias /worldviews-mini-2.gif /var/local/www/comics/worldviews-mini-2.gif
Alias /worldviews-mini-3.gif /var/local/www/comics/worldviews-mini-3.gif
Alias /worldviews-mini-4.gif /var/local/www/comics/worldviews-mini-4.gif
Alias /worldviews-mini-5.gif /var/local/www/comics/worldviews-mini-5.gif
Alias /worldviews-mini-6.gif /var/local/www/comics/worldviews-mini-6.gif

Alias /worldviews-spacer.gif /var/local/www/comics/worldviews-spacer.gif

# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.

#AddType text/x-server-parsed-html .shtml
#AddType application/x-httpd-cgi .cgi

AFS /afs /dev/null
AFS /people /dev/null

# If you want to have files/scripts sent instead of the built-in version
# in case of errors, uncomment the following lines and set them as you
# will.  Note: scripts must be able to be run as if the were called 
# directly (in ScriptAlias directory, for instance)

# 302 - REDIRECT 
# 400 - BAD_REQUEST 
# 401 - AUTH_REQUIRED 
# 403 - FORBIDDEN 
# 404 - NOT_FOUND 
# 500 - SERVER_ERROR 
# 501 - NOT_IMPLEMENTED 

#ErrorDocument 302 /cgi-bin/redirect.cgi
#ErrorDocument 500 /errors/server.html
#ErrorDocument 403 /errors/forbidden.html
