4.1a Module mod_uri_remap.c

This module is contained in the mod_uri_remap.c file and is compiled in by default.

Currently it is very dificult to trap all accesses to a single URI and to the 'null' URI in particular. This module makes that easy.

Full description / Example / Compile time options / RevisionHistory / Person to blame / Sourcecode


Full description of all tokens

Mother < Local URI of the main page >
This will trap requests for the 'NULL' uri (i.e. an empty GET HTTP/1.0<cr,cr> request) and the associated '/' and '/.' requests. These are normally the result of a get for And remap them into the local URI

Example:
Mother: /home.html

Rename < from > < to >
Specify an EXACT remapping of one URI into another. Unlike the Alias this is only effectuated if the from exactly matches the incoming URI down to the last character.

This can be very usefull to map a single page out of a secure domain or a cgi-domain.


Example

This example will map the home page (and a request for the index page and the '', '/' and '/.' URI's into the page home.html in the /public directory.

This allows to to set up a security enforcement umbrella over the whole web server, and make one well controlled exception, without compromizing the whole root segment of docroot.

Excerp of srm.conf:

Mother /home.html
Rename /home.html /public/home.html
Rename /index.html /public/index.html

Compile Time Options

Currently there are no Compile options.

Revision History

This version: 23 Nov 1995, 24 Feb 1996, 16 May 1996.
Version 0.4
First release
Version 0.5
Rename into mod_uri_remap
Version 0.6
Added some docs and error trapping.

Contact/person to blame

This module was written for the European Wide Service Exchange by <Dirk.vanGulik@jrc.it>. Feel free to contact me if you have any problems, icecreams or bugs. This documentation, courtesy of Nick Himba, <himba@cs.utwente.nl>.


Sourcecode

The source code can be found at http://www.apache.org. A snapshot of a development version usually resides at http://me-www.jrc.it/~dirkx/mod_uri_remap.c. Please make sure that you always quote the version you use when filing a bug report.