Yes, you can configure autohandler_name:
http://www.masonhq.com/docs/manual/Params.html#autohandler_name
On Nov 25, 2009, at 3:19 AM, Nickwork Work wrote:
Thanks for you response. That worked. Mason is now using the
autohandler as expected. :)
The website i was supplied had "autohandler.mh" files so being
inexperienced, i just assumed that was the file extension they had.
For this particular site, could this mean that mason has been
instructed (somewhere in the httpd.conf file) to use autohandler.mh
files for its autohandlers instead of just "autohandler" (without
the 'mh') extension?
As i'm not experienced with linux i cannot find the httpd.conf file
on the live server for this website so therefore cannot check it.
Does anyone know where the httpd.conf file normally resides on
hosted websites please?
Thanks again for your help.
Nick.
On 11/25/09, Emil-Nicolaie Perhinschi <emil...@gmail.com> wrote:
The autohandler must be called "autohandler", not "autohandler.mh".
e.
On Wed, Nov 25, 2009 at 12:14 PM, Nickwork Work
<nwnickwo...@googlemail.com> wrote:
> Hi,
>
> I'm new to mason, apache and mod_perl and normally develop in a
windows
> environment.
>
> I have used the bundled file "Perl-5.8-win32-bin.exe" in a windows
> environment and have got the following mason example to work, so i
know
> Mason is running and working.
>
> % my $noun = 'World';
> Hello <% $noun %>!
> How are ya?
>
> However, i cannot seem to get my autohandler.mh file to work. I
followed
> another example from mason books but it seems that the autohandler
is not
> being called despite being in the same directory.
>
> The autohandler.mh file contains the following:
>
> <html>
> <head>
> <title>Example.com</title>
> </head>
> <body>
> <% $m->call_next%>
> <br><a href="/">Home</a>
> </body>
> </html>
>
>
> The html file being requested is welcome.html and contains the
following: -
>
> <p>Welcome to a very wonderful site. We hope you enjoy your
stay.</p>
>
>
> The entry in my httpd.conf is: - (again, i got this from an
example i saw)
>
>
> PerlModule HTML::Mason::ApacheHandler
>
> <LocationMatch "(\.html|\.txt|\.pl)$">
>
> SetHandler perl-script
>
> PerlHandler HTML::Mason::ApacheHandler
>
> </LocationMatch>
>
> <LocationMatch "(\.m(html|txt|pl)|dhandler)$">
>
> SetHandler perl-script
>
> PerlInitHandler Apache::Constants::NOT_FOUND
>
> </LocationMatch>
>
>
> To summarise, my understanding is that Mason looks for the
autohandler in
> the same directory as the file being called and will automagically
wrap the
> content of the requested file (html) with the html content in the
> autohandler. This doesn't happen. It's as if the autohandler isn't
there.
>
> I'm wondering if i'm missing something from my httpd.conf file.
>
> If anyone could shed any light as to why this isn't working i'd be
most
> grateful.
>
> Thanks,
>
> Nick.
> nwnickwo...@googlemail.com
>
>
>
------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports
2008 30-Day
> trial. Simplify your report design, integration and deployment -
and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and
focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users