Pick a Free OS

User login

Navigation

Web server tutorial - Part 2

The same rules about trailing "/" apply to ScriptAlias directives

as to Alias.

ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"

"/home/httpd/cgi-bin" should be changed to whatever your ScriptAliased

CGI directory exists, if you have that configured.


AllowOverride None

Options ExecCGI

Order allow,deny

Allow from all

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 old-URL new-URL

Directives controlling the display of server-generated directory listings.

FancyIndexing: Asks whether you want fancy directory indexing or standard IndexOptions

FancyIndexing

AddIcon* directives: Tell the server which icon to show for different files

or filename extensions. These are only displayed for FancyIndexed directories.

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*

AddIconByType (IMG,/icons/image2.gif) image/*

AddIconByType (SND,/icons/sound2.gif) audio/*

AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe

AddIcon /icons/binhex.gif .hqx

AddIcon /icons/tar.gif .tar

AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv

AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip

AddIcon /icons/a.gif .ps .ai .eps

AddIcon /icons/layout.gif .html .shtml .htm .pdf

AddIcon /icons/text.gif .txt

AddIcon /icons/c.gif .c

AddIcon /icons/p.gif .pl .py

AddIcon /icons/f.gif .for

AddIcon /icons/dvi.gif .dvi

AddIcon /icons/uuencoded.gif .uu

AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl

AddIcon /icons/tex.gif .tex

AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..

AddIcon /icons/hand.right.gif README

AddIcon /icons/folder.gif ^^DIRECTORY^^

AddIcon /icons/blank.gif ^^BLANKICON^^


DefaultIcon: Which icon to show for files, which do not have an icon explicitly

set.

DefaultIcon /icons/unknown.gif