Re: handler dir

Andy Colson <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.