You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by pangj <pa...@riseup.net> on 2012/10/24 10:31:07 UTC

handler dir

Hello,

I have setup a handler under the root dir, i.e, http://example.com/
Can I setup another handler under the sub-path of root dir, for example, 
http://example.com/path/  ?

Thank you.

Re: handler dir

Posted by steve timoshuk <st...@gmail.com>.
I'm guessing the person that hacked my email account is the one messaging
you because this is obviously programming stuff, so please stop helping
this asshole..  If he's asking questions that would help a hacker
manipulate my iphone please call me at 714 366 5142.  Again this IS NOT
this jerks email account its mine. I just logged on and saw these random
messages and my phone/macpro has been getting hacked lately..

Thank you.
Steve
714 366 5142

On Wednesday, October 24, 2012, Andy Colson wrote:

> On 10/24/2012 3:31 AM, pangj wrote:
>
>> Hello,
>>
>> I have setup a handler under the root dir, i.e, http://example.com/
>> Can I setup another handler under the sub-path of root dir, for example,
>> http://example.com/path/  ?
>>
>> Thank you.
>>
>
> Yeah, I believe you can.  I have a setup like this, inside a <VirtualHost>:
>
>
> PerlModule Quote
> <Location /quote>
>         PerlSetupEnv Off
>         SetHandler modperl
>         PerlResponseHandler Quote
>         Order allow,deny
>         Allow from all
> </Location>
>
> <Location /quote/css>
>         SetHandler default-handler
>         Allow from all
> </Location>
>
> <Location /quote/js>
>         SetHandler default-handler
>         Allow from all
> </Location>
>
> Alias /quote/css /pub/www/quote/css
> Alias /quote/js /pub/www/quote/js
>
>
> In this case I'm resetting to the default-handler, but I don't see why you
> couldn't set it to another perl handler.
>
> -Andy
>

Re: handler dir

Posted by Andy Colson <an...@squeakycode.net>.
On 10/24/2012 3:31 AM, pangj wrote:
> Hello,
>
> I have setup a handler under the root dir, i.e, http://example.com/
> Can I setup another handler under the sub-path of root dir, for example,
> http://example.com/path/  ?
>
> Thank you.

Yeah, I believe you can.  I have a setup like this, inside a <VirtualHost>:


PerlModule Quote
<Location /quote>
         PerlSetupEnv Off
         SetHandler modperl
         PerlResponseHandler Quote
         Order allow,deny
         Allow from all
</Location>

<Location /quote/css>
         SetHandler default-handler
         Allow from all
</Location>

<Location /quote/js>
         SetHandler default-handler
         Allow from all
</Location>

Alias /quote/css /pub/www/quote/css
Alias /quote/js /pub/www/quote/js


In this case I'm resetting to the default-handler, but I don't see why 
you couldn't set it to another perl handler.

-Andy