A local mapping consists of a location match and the local directory from which to try to serve the matches.
Files are searched for in the local directory using the relative path. The relative path is the part of the requested location left over after the path part of the match. This is best explained by the examples below.
Local mappings can be case-sensitive, so that regardless of whether your local filesystem is in fact case-sensitive, the local mapping will always check the case. Case-sensitivity is the default.
The following examples help to explain how the location match relates to the local directory. The "local" column is presented as relative to the local directory.
Host | Path | Request | Local |
---|---|---|---|
xk72.com | xk72.com/charles/index.php | charles/index.php | |
xk72.com | /charles/ | xk72.com/charles/index.php | index.php |
xk72.com | /*.php | xk72.com/charles/index.php | charles/index.php |
xk72.com | /charles/*.php | xk72.com/charles/index.php | index.php |