Before you do anything, you should read this URL primer to familiarize yourself with URLs. You will want to pay attention to the section referring to HTTP URLs.
http://servername:port/path
If your ServerType is
inetd
, your port number was set in
/etc/services
.
If your ServerType is standalone
, the Port directive set your port number.
The server translates path
as follows:
1. It looks for any defined Alias or
ScriptAlias virtual names at the
beginning of path
. If it finds one, it replaces the
virtual name with the real name and processes the request.
2. It looks for a prefix of /~, and if UserDir is not DISABLED, it will look in the user's public html subdirectory for the file.
3. It inserts DocumentRoot at
the beginning of path
and processes the request.
To do this using NCSA httpd, create a DirectoryIndex file in the DocumentRoot directory.
Note that this index can be a symbolic link to another file.
DocumentRoot /u/Web DirectoryIndex index.html ScriptAlias /htbin /usr/local/etc/httpd/htbin Alias /zftp /archive/ftpAn HTML document references
http://hoohoo.ncsa.uiuc.edu/docs/Overview.html
. The
server finds no Alias or ScriptAlias virtual names in
path
, so it returns the file
/u/Web/docs/Overview.html
.
Someone references my home page as
http://hoohoo.ncsa.uiuc.edu/
. The server finds no virtual
names, so it returns /u/Web/index.html
.
Another HTML document references
http://hoohoo.ncsa.uiuc.edu/htbin/uptime
. The server
finds the ScriptAlias /htbin
at the beginning of
path
, and so executes the script
/usr/local/etc/httpd/htbin/uptime
.
Another HTML document references
http://hoohoo.ncsa.uiuc.edu/zftp/README.txt
. The server
finds the Alias /zftp
at the beginning of
path
, and returns the file
/archive/ftp/README.txt
.
Return to administration overview
httpd@ncsa.uiuc.edu