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 /cgi-bin /usr/local/etc/httpd/cgi-bin 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/cgi-bin/uptime
. The server
finds the ScriptAlias /cgi-bin
at the beginning of
path
, and so executes the script
/usr/local/etc/httpd/cgi-bin/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
.