You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Maikel Punie <ma...@gmail.com> on 2010/12/27 20:53:03 UTC
perlRequestHandler
hey,
i created a custom requesthandler that handles the request for a certain
filetype,
but now i want to register it with apache, how can i do this?
at the moment i have it working for a specifick location,
but i want to get it working for every file (specifick mime type) that is
serverd with apache.
where do i start?
the current apache config:
PerlRequire /etc/apache2/sin/rstHandler.pm
<Location /rst>
SetHandler modperl
PerlResponseHandler sin::rstHandler
</Location>
any help would be appreciatie,
Maikel
Re: perlRequestHandler
Posted by Perrin Harkins <pe...@elem.com>.
This is a general apache configuration question, so you should be able
to find some documentation about it. A common approach would be to
attach your handler to / with a Location or LocationMatch block.
- Perrin
On Mon, Dec 27, 2010 at 2:53 PM, Maikel Punie <ma...@gmail.com> wrote:
> hey,
>
> i created a custom requesthandler that handles the request for a certain
> filetype,
>
> but now i want to register it with apache, how can i do this?
>
> at the moment i have it working for a specifick location,
> but i want to get it working for every file (specifick mime type) that is
> serverd with apache.
>
> where do i start?
>
> the current apache config:
> PerlRequire /etc/apache2/sin/rstHandler.pm
> <Location /rst>
> SetHandler modperl
> PerlResponseHandler sin::rstHandler
> </Location>
>
>
> any help would be appreciatie,
>
> Maikel
>
>
Re: perlRequestHandler
Posted by André Warnier <aw...@ice-sa.com>.
Maikel Punie wrote:
> hey,
>
> i created a custom requesthandler that handles the request for a certain
> filetype,
>
> but now i want to register it with apache, how can i do this?
>
> at the moment i have it working for a specifick location,
> but i want to get it working for every file (specifick mime type) that is
> serverd with apache.
>
> where do i start?
>
> the current apache config:
> PerlRequire /etc/apache2/sin/rstHandler.pm
> <Location /rst>
> SetHandler modperl
> PerlResponseHandler sin::rstHandler
> </Location>
>
>
> any help would be appreciatie,
>
You could configure it in a <FilesMatch ..> section.