----- Il 17-apr-17, alle 2:24, Alex Robinson <ma...@alex.solidgoldpig.com> ha
scritto:
> Hi gdo
> Are you using HTML:Mason rather than Mason 2? (and if so, why? ;)
> http://search.cpan.org/~drolsky/HTML-Mason-1.56/lib/HTML/Mason.pm#WAIT_-_HAVE_YOU_SEEN_MASON_2
> ?
The answer is very simple : we have a legacy of 150 thousand lines of code
written with HTML::Mason and their conversion would be very costly because the
new Mason is not backward compatible and converters are not available.
> I've attached 2 files that essentially show what I kludged up back in 2004 or
> 5.
> Or whenever
> The ApacheHandler is massively cut down, but hopefully it gives the rough
> idea.
> My apache config contains something along the lines of:
> PerlModule Apache2::compat
We don't use this module in our environment.
Do you think it is mandatory to use MasonX::Request::ExtendedCompRoot module?
> PerlSetVar MasonArgsMethod mod_perl
> PerlOptions +GlobalRequest
> PerlModule EDT::Mason::ApacheHandler
> <Location />
> Require all granted
> SetHandler modperl
> PerlHandler EDT::Mason::ApacheHandler
> </Location>
> Works for me - YMMV (there are still several sites still running on it having
> been migrated from box to box - I can confirm against Apache 2.4.6 ;)
> Sorry to not have a clean and concise answer...
> Alex
> On 16 April 2017 at 20:16, Guido Brugnara < g...@leader.it > wrote:
>> To set up the MasonX::Request::ExtendedCompRoot component I have add these
>> two
>> rows in my Apache 2.4 config file:
>> PerlSetVar MasonRequestClass MasonX::Request::ExtendedCompRoot
>> PerlSetVar MasonResolverClass MasonX::Resolver::ExtendedCompRoot
>> ... but the Apache 2.4 (or 2.2) server respond with this error:
>> [Sun Apr 16 20:26:17.446351 2017] [perl:error] [pid 5672] [client
>> 192.168.9.2:40230 ] Undefined subroutine
>> &HTML::Mason::Resolver::File::ApacheHandler::apache_request_to_comp_path
>> called
>> at /
>> Someone use with success this component with Apache 2?
>> My goal is to call to a specific component root, for example to partially
>> change
>> the component beavior in main root with a component in the secondary root
>> which
>> then calls the main component.
>> There are MasonX::Request::ExtendedCompRoot alternatives?
>> Any suggestions would be appreciated.
>> bye
>> gdo
>> ------------------------------------------------------------------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Mason-users mailing list
>> Mason-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mason-users
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users