Hi all,
About my problem from a few days ago, I had thought my problem is not
Mason related so I asked on the modperl mailing list... I posted a
sample HTML form and the file that the form calls and someone replied
with the following:
-----
Yes. Your code behaves as if CGI.pm was being used by Mason instead
of apreq. When that happens, CGI.pm steals the post data, and
apreq sees nothing but an "End of File" situation.
If I were you, I'd double-check how you configured Mason to select
apreq instead of CGI.pm. That's probably where the bug lies.
-----
So, it appears I've done something wrong with my Mason set up. I
skimmed through Chapter 9 of the Mason Book (i.e., "Mason and CGI") and
I didn't do any of that... I don't know how CGI is entering into the
problem...I'm guessing it's some default setting somewhere? Would
anyone know what I should be looking for or what the problem is?
My httpd.conf is below:
-----
PerlAddVar MasonCompRoot "user => /home/user/public_html"
PerlAddVar MasonCompRoot "main => /var/www"
PerlModule HTML::Mason::ApacheHandler
PerlModule Apache2::Const
AddType text/html .mhtml
<Directory /home/user/public_html>
<FilesMatch "(\.html|\.mhtml)$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</FilesMatch>
</Directory>
<FilesMatch "(\.mas|handler)$">
SetHandler perl-script
PerlHandler "sub { return Apache2::Const::NOT_FOUND }"
</FilesMatch>
-----
Thank you!
Ray
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users