On Tue, 17 Feb 2009 16:20:42 +0100
valerio wrote:

> Hi, I was wondering if is possible using same mod_perl handler with 
> different ports and how can i manage to configure it.

The Listen directive is part of the server configuration, and not valid
within a Location block.  Configure your server to listen on both ports
12200 and 12300, then specify two VirtualHosts, one for each port.  You
may then specify SetHandler and PerlResponseHandler within each
VirtualHost.

For Apache2, start reading here:
http://httpd.apache.org/docs/2.0/bind.html
http://httpd.apache.org/docs/2.0/mod/mpm_common.html#listen

> 
> I was thinking of a similar thing:
> 
> 
> <Location "/query">
>   SetHandler        perl-script
>   Listen 12200
>   PerlResponseHandler    Handler
> </Location>
> 
> <Location "/query">
>   SetHandler        perl-script
>   PerlResponseHandler    Handler2
>   Listen 12300
> </Location>
> 
> so if i call http://../query:12200 i call Handler
> and if i call http://../query:12300 i call Handler2

Reply via email to