The MAP module
This module is used to handle ISMAP requests for server-side image maps. It
handles both CERN- and NCSA-style MAP files and it attempts a textual display
of the map if the browser does not support image maps.
Example file (sample.map)
The map file contains the shapes and coordinates of the hotzones and the
corresponding URLs. Comments can be included and are marked by the `#'
character. Since the map module displays the map file if the browser does not
support proper coordinates, it is recommended to add descriptive comments
which explain the purpose of each link.
# sample.map
# Welcome to IFM
circle (100,100) 50 http://www.ifm.liu.se/
# FTP site
rectangle (10,10) (100,100) ftp://ftp.lysator.liu.se/
# About this server
polygon (0,0) (10,0) (10,10) /phttpd/
# Lysator Academic Computer Society
default http://www.lysator.liu.se/
System issues
Causes the server to close Keep-Alive sockets after the redirect
has been sent.
Configuration options (map.conf)
There is no map.conf
file to configure. However, it is a good
idea to add the following lines to the phttpd.conf
file:
url-rewrites = {
/cgi-bin/imagemap/ /%{2-}
}
Many servers make use of separate programs to implement server-side
imagemaps. Image map URLs on such servers always consist of the path to the
imagemap program (e.g. /cgi-bin/imagemap/
) and the path to the
acutal map file. In phttpd, server-side image mapping is part of the server
itself and so the URL consists only of the path to the map file. The effect of
adding the above lines to phttpd.conf
this is to remove the part
that pertains to the imagemap program. This is really only necessary should a
legacy document still refer to image maps using the old notation.