IconPath
- Changing the host and possibly path of the location of the standard
icons
AddIconToStd
- Add an icon to the default set of icons
AddIcon
- bind icon URL to a MIME Content-Type or Content-Encoding
AddBlankIcon
- icon URL used in the heading of the listing to align it
AddUnknownIcon
- icon URL for unknown file types
AddDirIcon
- icon URL for directories
AddParentIcon
- icon URL for parent directory
ServerRoot
but maybe
on another server this directive can be used to define the location.
An example is:
IconPath http://new.icon.server:8080/httpd-internal-icons/
AddIconToStd
directive behaves exactly as the AddIcon
directive in that it allows
to add an icon definition for a certain MIME-type. However, it does
not disable the initialization of the standard icons but
makes an extension to these ones.
AddIcon
directive binds an icon to a MIME
Content-Type or Content-Encoding:
AddIcon icon-url ALT-text template
AddIcon /icons/UNKNOWN.gif ??? */* AddIcon /icons/TEXT.gif TXT text/* AddIcon /icons/IMAGE.gif IMG image/* AddIcon /icons/SOUND.gif AU audio/* AddIcon /icons/MOVIE.gif MOV video/* AddIcon /icons/PS.gif PS application/postscript Pass /icons/* /absolute/icon/dir/* ...other rules...
httpd
as a proxy the icon URL must
be an absolute URL pointing to your server; otherwise clients
would translate it relative to the remote host. Furthermore, you must have a mapping from this absolute URL to your local file system, e.g.:
AddIcon http://your.server/icons/UNKNOWN.gif ??? */* AddIcon http://your.server/icons/TEXT.gif TXT text/* AddIcon http://your.server/icons/IMAGE.gif IMG image/* AddIcon http://your.server/icons/SOUND.gif AU audio/* AddIcon http://your.server/icons/MOVIE.gif MOV video/* AddIcon http://your.server/icons/PS.gif PS application/postscript Pass http://your.server/icons/* /absolute/icon/dir/* Pass /icons/* /absolute/icon/dir/* Pass http:* Pass ftp:* Pass gopher:*Both the full and partial icon URLs are
Pass
'ed because
smart clients may be configured to connect to local
servers directly, instead of through the proxy, and in that case the proxy
server (which is then just a normal HTTP server from client's point
of view) will be requested for /icons/...
instead of
http://your.server/icons/...
. The proxy server has no way
of knowing which will happen.
httpd
) MIME content types
that can be bound to icons for gopher listings (the names should be
self-explanatory):
application/x-gopher-index
application/x-gopher-cso
application/x-gopher-telnet
application/x-gopher-tn3270
application/x-gopher-duplicate
httpd
needs some special icons:
AddBlankIcon
AddUnknownIcon
AddIcon
directives this needs not be used.
AddDirIcon
AddParentIcon
Pass
the icon URLs!
AddBlankIcon /icons/BLANK.gif AddUnknownIcon /icons/UNKNOWN.gif ??? AddDirIcon /icons/DIR.gif DIR AddParentIcon /icons/PARENT.gif UP Pass /icons/* /absolute/icon/dir/* ...other rules...
Pass
them:
AddBlankIcon http://your.server/icons/BLANK.gif AddUnknownIcon http://your.server/icons/UNKNOWN.gif ??? AddDirIcon http://your.server/icons/DIR.gif DIR AddParentIcon http://your.server/icons/PARENT.gif UP Pass http://your.server/icons/* /absolute/icon/dir/* Pass /icons/* /absolute/icon/dir/* Pass http:* Pass ftp:* Pass gopher:*