httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <...@apache.org>
Subject Re: simple mapping module example?
Date Thu, 29 Apr 2010 07:54:26 GMT

On 29 Apr 2010, at 04:56, Mark Harrison wrote:

> I would like to do a simple mapper:
> 
>   - given some inputs, calculate a file path
>   - let apache serve out that file for me
> 
> Is there a simple example of how to do this?  mod_rewrite
> is pretty heavy-duty, and I'd like to get a simpler
> model to follow.

Maybe mod_rewrite will do all you need anyway!

The simplest example to look at in the apache code would be
mod_alias.  Otherwise, the end of Chapter 6 of the modules
book[1] leads you through developing a mapper module.

[1] http://www.apachetutor.org/

-- 
Nick Kew

Mime
View raw message