mod_imap.html revision 25503838e438bb909e3ff880125732c7ed5e64ad
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<HTML>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<HEAD>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<TITLE>Apache module mod_imap</TITLE>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff</HEAD>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<BODY
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff BGCOLOR="#FFFFFF"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff TEXT="#000000"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff LINK="#0000FF"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff VLINK="#000080"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff ALINK="#FF0000"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<!--#include virtual="header.html" -->
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<H1 ALIGN="CENTER">Module mod_imap</H1>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael GraffThis module is contained in the <CODE>mod_imap.c</CODE> file, and is
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graffcompiled in by default. It provides for <CODE>.map</CODE> files,
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graffreplacing the functionality of the <CODE>imagemap</CODE> CGI
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graffprogram. Any directory or document type configured to use the handler
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<CODE>imap-file</CODE> (using either <CODE><A
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael GraffHREF="mod_mime.html#addhandler">AddHandler</A> </CODE> or <CODE><A
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael GraffHREF="mod_mime.html#sethandler">SetHandler</A></CODE>) will be
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graffprocessed by this module.
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<H2>Summary</H2>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
f9df80f4348ef68043903efa08299480324f4823Michael GraffThis module is in the default Apache distribution. The following directive will
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graffactivate files ending with <CODE>.map</CODE> as imagemap files:
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<BLOCKQUOTE><CODE>AddHandler imap-file map</CODE></BLOCKQUOTE>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
f9df80f4348ef68043903efa08299480324f4823Michael GraffNote that the following is still supported:
f9df80f4348ef68043903efa08299480324f4823Michael Graff
f9df80f4348ef68043903efa08299480324f4823Michael Graff <BLOCKQUOTE><CODE>AddType application/x-httpd-imap map</CODE></BLOCKQUOTE>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
f9df80f4348ef68043903efa08299480324f4823Michael GraffHowever, we are trying to phase out "magic MIME types" so we are deprecating
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graffthis method.
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff<H2>New Features</H2>
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael GraffThe imagemap module adds some new features that were not
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graffpossible with previously distributed imagemap programs.<P>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
f9df80f4348ef68043903efa08299480324f4823Michael Graff<UL>
f9df80f4348ef68043903efa08299480324f4823Michael Graff<LI>URL references relative to the Referer: information.
f9df80f4348ef68043903efa08299480324f4823Michael Graff<LI>Default &lt;BASE&gt; assignment through a new map directive
f9df80f4348ef68043903efa08299480324f4823Michael Graff<CODE>base</CODE>.
f9df80f4348ef68043903efa08299480324f4823Michael Graff<LI>No need for <CODE>imagemap.conf</CODE> file.
f9df80f4348ef68043903efa08299480324f4823Michael Graff<LI>Point references.
f9df80f4348ef68043903efa08299480324f4823Michael Graff<LI>Configurable generation of imagemap menus.
f9df80f4348ef68043903efa08299480324f4823Michael Graff</UL>
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff<P>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
e223094b2248afa2697c531f75e6f84855638becMichael Graff<H2>Configuration Directives</H2>
b02262cbcd550c63f85df76edc6fff556ea5e95dMichael Graff<UL>
b02262cbcd550c63f85df76edc6fff556ea5e95dMichael Graff<LI><A HREF="#imapmenu">ImapMenu</A>
b02262cbcd550c63f85df76edc6fff556ea5e95dMichael Graff<LI><A HREF="#imapdefault">ImapDefault</A>
b02262cbcd550c63f85df76edc6fff556ea5e95dMichael Graff<LI><A HREF="#imapbase">ImapBase</A>
f9df80f4348ef68043903efa08299480324f4823Michael Graff</UL>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
f9df80f4348ef68043903efa08299480324f4823Michael Graff
f9df80f4348ef68043903efa08299480324f4823Michael Graff<P>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
f9df80f4348ef68043903efa08299480324f4823Michael Graff<H3><A name="imapmenu">ImapMenu</A></H3>
f9df80f4348ef68043903efa08299480324f4823Michael Graff<A
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff HREF="directive-dict.html#Syntax"
f9df80f4348ef68043903efa08299480324f4823Michael Graff REL="Help"
f9df80f4348ef68043903efa08299480324f4823Michael Graff><STRONG>Syntax:</STRONG></A> ImapMenu <CODE>{none, formatted, semi-formatted,
f9df80f4348ef68043903efa08299480324f4823Michael Graff unformatted}</CODE><BR>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<A
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff HREF="directive-dict.html#Context"
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff REL="Help"
fccf7905e8a06067d49ec00c53d4d57a38a71e52Michael Graff><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
f9df80f4348ef68043903efa08299480324f4823Michael Graff<A
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff HREF="directive-dict.html#Override"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff REL="Help"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff><STRONG>Override:</STRONG></A> Indexes<BR>
f9df80f4348ef68043903efa08299480324f4823Michael Graff<A
f9df80f4348ef68043903efa08299480324f4823Michael Graff HREF="directive-dict.html#Module"
f9df80f4348ef68043903efa08299480324f4823Michael Graff REL="Help"
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff><STRONG>Module:</STRONG></A> mod_imap.c<BR>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<A
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff HREF="directive-dict.html#Compatibility"
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff REL="Help"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff><STRONG>Compatibility:</STRONG></A> ImapMenu is only available in Apache
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff1.1 and later.<P>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael GraffThe ImapMenu directive determines the action taken if an imagemap file
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graffis called without valid coordinates.
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<DL>
f9df80f4348ef68043903efa08299480324f4823Michael Graff <DT><CODE>none</CODE>
f9df80f4348ef68043903efa08299480324f4823Michael Graff <DD>If ImapMenu is
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff <CODE>none</CODE>, no menu is generated, and the <CODE>default</CODE>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff action is performed.
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff <DT><CODE>formatted</CODE>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff <DD>A <CODE>formatted</CODE> menu is the simplest menu. Comments
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff in the imagemap file are ignored. A level one header is
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff printed, then an hrule, then the links each on a separate line.
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff The menu has a consistent, plain look close to that of
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff a directory listing.
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff <DT><CODE>semiformatted</CODE>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff <DD>In the <CODE>semiformatted</CODE> menu, comments are printed
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff where they occur in the imagemap file. Blank lines are turned
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff into HTML breaks. No header or hrule is printed, but otherwise
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff the menu is the same as a <CODE>formatted</CODE> menu.
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff <DT><CODE>unformatted</CODE>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff <DD>Comments are printed, blank lines are ignored. Nothing is
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff printed that does not appear in the imagemap file. All breaks
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff and headers must be included as comments in the imagemap file.
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff This gives you the most flexibility over the appearance of your
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff menus, but requires you to treat your map files as HTML instead
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff of plaintext.
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff</DL>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<P>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<H3><A name="imapdefault">ImapDefault</A></H3>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<A
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff HREF="directive-dict.html#Syntax"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff REL="Help"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff><STRONG>Syntax:</STRONG></A> ImapDefault <CODE>{error, nocontent,
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff map, referer, URL}</CODE><BR>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<A
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff HREF="directive-dict.html#Context"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff REL="Help"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<A
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff HREF="directive-dict.html#Override"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff REL="Help"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff><STRONG>Override:</STRONG></A> Indexes<BR>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff<A
f9df80f4348ef68043903efa08299480324f4823Michael Graff HREF="directive-dict.html#Module"
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff REL="Help"
f9df80f4348ef68043903efa08299480324f4823Michael Graff><STRONG>Module:</STRONG></A> mod_imap.c<BR>
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff<A
f9df80f4348ef68043903efa08299480324f4823Michael Graff HREF="directive-dict.html#Compatibility"
f9df80f4348ef68043903efa08299480324f4823Michael Graff REL="Help"
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff><STRONG>Compatibility:</STRONG></A> ImapDefault is only available in Apache
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff1.1 and later.<P>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael GraffThe ImapDefault directive sets the default <CODE>default</CODE> used in
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graffthe imagemap files. It's value is overridden by a <CODE>default</CODE>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graffdirective within the imagemap file. If not present, the
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff<CODE>default</CODE> action is <CODE>nocontent</CODE>, which means
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graffthat a <CODE>204 No Content</CODE> is sent to the client. In this
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graffcase, the client should continue to display the original page.
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff<P>
9178881e1bf6a4b01db886b355406c8bed61cc2aMichael Graff
f9df80f4348ef68043903efa08299480324f4823Michael Graff<H3><A name="imapbase">ImapBase</A></H3>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<A
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff HREF="directive-dict.html#Syntax"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff REL="Help"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff><STRONG>Syntax:</STRONG></A> ImapBase <CODE>{map, referer, URL}</CODE><BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<A
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff HREF="directive-dict.html#Context"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff REL="Help"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff><STRONG>Context:</STRONG></A> server config, virtual host, directory, .htaccess<BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<A
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff HREF="directive-dict.html#Override"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff REL="Help"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff><STRONG>Override:</STRONG></A> Indexes<BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<A
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff HREF="directive-dict.html#Module"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff REL="Help"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff><STRONG>Module:</STRONG></A> mod_imap.c<BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<A
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff HREF="directive-dict.html#Compatibility"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff REL="Help"
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff><STRONG>Compatibility:</STRONG></A> ImapBase is only available in Apache
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff1.1 and later.<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael GraffThe ImapBase directive sets the default <CODE>base</CODE> used in
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffthe imagemap files. It's value is overridden by a <CODE>base</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffdirective within the imagemap file. If not present, the
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<CODE>base</CODE> defaults to <CODE>http://servername/</CODE>.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff<HR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<H2>Imagemap File</H2>
d68838693666ba930ec4143f848c18bff2bfc244Michael GraffThe lines in the imagemap files can have one of several formats:
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<BLOCKQUOTE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<CODE>directive value [x,y ...]</CODE><BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<CODE>directive value "Menu text" [x,y ...]</CODE><BR>
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff<CODE>directive value x,y ... "Menu text"</CODE><BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff</BLOCKQUOTE>
d68838693666ba930ec4143f848c18bff2bfc244Michael GraffThe directive is one of <CODE>base</CODE>, <CODE>default</CODE>,
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<CODE>poly</CODE>, <CODE>circle</CODE>, <CODE>rect</CODE>, or
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<CODE>point</CODE>. The value is an absolute or relative URL, or one
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffof the special values listed below. The coordinates are
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<CODE>x,y</CODE> pairs separated by whitespace. The quoted text is
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffused as the text of the link if a imagemap menu is generated. Lines
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffbeginning with '#' are comments.
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff<H3>Imagemap File Directives</H3>
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael GraffThere are six directives allowed in the imagemap file. The directives
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffcan come in any order, but are processed in the order they are found
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffin the imagemap file.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DL>
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff<DT><CODE>base</CODE> Directive
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DD>Has the effect of <CODE>&lt;BASE HREF="value"&gt;</CODE>. The
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff non-absolute URLs of the map-file are taken relative to this value.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff The <CODE>base</CODE> directive overrides ImapBase as set in a
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff .htaccess file or in the server configuration files. In the absence
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff of an ImapBase configuration directive, <CODE>base</CODE> defaults to
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>http://server_name/</CODE>. <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>base_uri</CODE> is synonymous with <CODE>base</CODE>. Note that
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff a trailing slash on the URL is significant.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DT><CODE>default</CODE> Directive
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DD>The action taken if the coordinates given do not fit any of the
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>poly</CODE>, <CODE>circle</CODE> or <CODE>rect</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff directives, and there are no <CODE>point</CODE> directives. Defaults
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff to <CODE>nocontent</CODE> in the absence of an ImapDefault
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff configuration setting, causing a status code of <CODE>204 No
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff Content</CODE> to be returned. The client should keep the same
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff page displayed.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff<DT><CODE>poly</CODE> Directive
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DD>Takes three to one-hundred points, and is obeyed if the user selected
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff coordinates fall within the polygon defined by these points.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DT><CODE>circle</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DD>Takes the center coordinates of a circle and a point on the circle. Is
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff obeyed if the user selected point is with the circle.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DT><CODE>rect</CODE> Directive
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff<DD>Takes the coordinates of two opposing corners of a rectangle. Obeyed
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff if the point selected is within this rectangle.
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DT><CODE>point</CODE> Directive
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DD>Takes a single point. The point directive closest to the user
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff selected point is obeyed if no other directives are satisfied.
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff Note that <CODE>default</CODE> will not be followed if a
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>point</CODE> directive is present and valid coordinates are
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff given.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff</DL>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<H3>Values</H3>
d68838693666ba930ec4143f848c18bff2bfc244Michael GraffThe values for each of the directives can any of the following:
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DL>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DT>a URL
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DD>The URL can be relative or absolute URL. Relative URLs can
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff contain '..' syntax and will be resolved relative to the
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>base</CODE> value. <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>base</CODE> itself will not resolved according to the current
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff value. A statement <CODE>base mailto:</CODE> will work properly, though.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DT><CODE>map</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DD>Equivalent to the URL of the imagemap file itself. No
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff coordinates are sent with this, so a menu will be generated
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff unless ImapMenu is set to 'none'.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DT><CODE>menu</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DD>Synonymous with <CODE>map</CODE>.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DT><CODE>referer</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DD>Equivalent to the URL of the referring document.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff Defaults to <CODE>http://servername/</CODE> if no Referer:
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff header was present.
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff<P>
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff <DT><CODE>nocontent</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DD>Sends a status code of <CODE>204 No Content</CODE>,
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff telling the client to keep the same page displayed. Valid for
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff all but <CODE>base</CODE>.
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DT><CODE>error</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DD>Fails with a <CODE>500 Server Error</CODE>. Valid for all but
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>base</CODE>, but sort of silly for anything but
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>default</CODE>.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff</DL>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<H3>Coordinates</H3>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DL>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DT><CODE>0,0 200,200</CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DD>A coordinate consists of an <TT>x</TT> and a <TT>y</TT> value
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff separated by a comma. The coordinates are separated from each other
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff by whitespace. To accommodate the way Lynx handles imagemaps, should a
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff user select the coordinate <CODE>0,0</CODE>, it is as if
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff no coordinate had been selected.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff</DL>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<H3>Quoted Text</H3>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<DL>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <DT><CODE>"Menu Text"</CODE>
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff <DD>After the value or after the coordinates, the line optionally may
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff contain text within double quotes. This string is used as the
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff text for the link if a menu is generated:<BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>&lt;a HREF="http://foo.com/"&gt;Menu text&lt;/a&gt;</CODE><BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff If no quoted text is present, the name of the link will be used
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff as the text:<BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff <CODE>&lt;a HREF="http://foo.com/"&gt;http://foo.com&lt;/a&gt;</CODE><BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff It is impossible to escape double quotes within this text.
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff</DL>
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff<HR>
70fd62761dfe44f2254fb63ac3ded1b02663713fMichael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<H2>Example Mapfile</H2>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<BLOCKQUOTE><CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff#Comments are printed in a 'formatted' or 'semiformatted' menu. <BR>
97e7d389d54a9e3a1ba8313ed140b04afabc7081Michael Graff#And can contain html tags. &lt;hr&gt; <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffbase referer <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffpoly map "Could I have a menu, please?" 0,0 0,10 10,10 10,0 <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffrect .. 0,0 77,27 "the directory of the referer"<BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffcircle http://www.inetnebr.com/lincoln/feedback/ 195,0 305,27 <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffrect another_file "in same directory as referer" 306,0 419,27 <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffpoint http://www.zyzzyva.com/ 100,100 <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffpoint http://www.tripod.com/ 200,200 <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graffrect mailto:nate@tripod.com 100,150 200,0 "Bugs?" <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff</CODE></BLOCKQUOTE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<P>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<H2>Referencing your mapfile</H2>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff<BLOCKQUOTE><CODE>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff&lt;A HREF="/maps/imagemap1.map"&gt; <BR>
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff&lt;IMG ISMAP SRC="/images/imagemap1.gif"&gt; <BR>
f9df80f4348ef68043903efa08299480324f4823Michael Graff&lt;/A&gt;
f9df80f4348ef68043903efa08299480324f4823Michael Graff</CODE></BLOCKQUOTE><P>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
f9df80f4348ef68043903efa08299480324f4823Michael Graff<!--#include virtual="footer.html" -->
f9df80f4348ef68043903efa08299480324f4823Michael Graff</BODY>
f9df80f4348ef68043903efa08299480324f4823Michael Graff</HTML>
f9df80f4348ef68043903efa08299480324f4823Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff
d68838693666ba930ec4143f848c18bff2bfc244Michael Graff