The anatomy of a map

A map statement in the aws config file has three components:

  1. A URL prefix that is used to select requests for this map to apply to.
  2. A module name, that this map runs on requests for URLs that match the URL prefix.
  3. Module-specific arguments. Even maps that don't need an argument have something in this position, usually "-".

For instance, the map that corresponds to a ServerRoot directive in other servers is:

map / directory data:html/

Which checks all requests to see if they match a file in the directory data:html.

More generally, the NCSA httpd alias:

Alias /icons/ html:icons/

is identical to the map:

map /icons/ directory html:icons/

Next, Previous, Contents

Mike Meyer