perlRequestHandler

perlRequestHandler

am 27.12.2010 20:53:03 von Maikel Punie

--0016e64cbb30176aa5049869af85
Content-Type: text/plain; charset=UTF-8

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

SetHandler modperl
PerlResponseHandler sin::rstHandler



any help would be appreciatie,

Maikel

--0016e64cbb30176aa5049869af85
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

hey,

i created a custom requesthandler that handles the request for =
a certain filetype,

but now i want to register it with apache, how c=
an i do this?

at the moment i have it working for a specifick locati=
on,

but i want to get it working for every file (specifick mime type) that is s=
erverd with apache.

where do i start?

the current apache conf=
ig:
PerlRequire /etc/apache2/sin/rstHandler.pm
<Location /rst><=
br>
    SetHandler modperl
    PerlResponseHan=
dler sin::rstHandler
</Location>


any help would be appr=
eciatie,

Maikel



--0016e64cbb30176aa5049869af85--

Re: perlRequestHandler

am 27.12.2010 20:57:58 von aw

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
>
> SetHandler modperl
> PerlResponseHandler sin::rstHandler
>

>
>
> any help would be appreciatie,
>

You could configure it in a section.

Re: perlRequestHandler

am 03.01.2011 01:18:20 von Perrin Harkins

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 wrot=
e:
> 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
>
>   =A0 SetHandler modperl
>   =A0 PerlResponseHandler sin::rstHandler
>

>
>
> any help would be appreciatie,
>
> Maikel
>
>