See if you can get anything to resolve through Mason. e.g. change
LocationMatch... to <Location />, and serve a file out of your
DocumentRoot that doesn't involve translating "~". Just trying to
experiment a little to eliminate some possibilities.
On Sep 29, 2009, at 1:23 PM, Michael R Boudreau wrote:
I have an example for each:
http://localhost/~mrb/masontest.mhtml
resolves to /Users/mrb/Sites/masontest.mhtml
and should be handled by my LocationMatch directive
but is not. :-(
http://localhost/~mrb/mason/sfmail_new/index.html
resolves to /Users/mrb/Sites/mason/sfmail_new/index.html
and should be handled by my Direcotry directive
but is not. :-(
On Sep 29, 2009, at 2:53 PM, Jonathan Swartz wrote:
If it isn't being processed, that usually means Apache isn't
passing it to the Mason handler. Which means it isn't matching your
Directory or LocationMatch directives.
Can you be more specific about the URL you are hitting and the full
file path it is resolving to?
Jon
On Sep 29, 2009, at 12:05 PM, Michael R Boudreau wrote:
Hi all,
Is anyone else having a problem getting Snow Leopard to process
Mason pages?
I'm setting up a new iMac with OS X 10.6.1, Apache 2.2.11, Perl
5.10.0, mod_perl 2.0.4.
I have just installed Mason 1.42 via cpan, which didn't report any
fatal errors. A simple one-liner 'perl -e "use HTML::Mason"'
doesn't return any error message either.
I have added the following to my Apache httpd.conf:
LoadModule perl_module libexec/apache2/mod_perl.so
[snip]
PerlModule HTML::Mason::ApacheHandler
PerlSetVar MasonDataDir /usr/local/mason
PerlAddVar MasonCompRoot "main => /Library/WebServer/Documents"
PerlAddVar MasonCompRoot "mrb => /Users/mrb/Sites"
<Directory /Users/mrb/Sites/mason/sfmail_new>
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</Directory>
AddType text/html .mhtml
<LocationMatch "\.mhtml$">
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</LocationMatch>
I created the directory /usr/local/mason and its subdirectories
cache and obj.
I stopped and started Apache to read the modified http.conf.
All this duplicates the setup on my previous Mac, which is running
Mason and serving pages correctly.
However, when I point my browser at pages with Mason code, it's
not being processed--just displayed in the browser.
Is there something obvious I've forgotten?
Michael Boudreau
Senior Publishing Technology Analyst
The University of Chicago Press
1427 E. 60th Street
Chicago, IL 60637
(773) 753-3298 fax: (773) 753-3383
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in
SF, CA
is the only developer event you need to attend this year.
Jumpstart your
developing skills, take BlackBerry mobile applications to market
and stay
ahead of the curve. Join us from November 9-12, 2009. Register
now!
http://p.sf.net/sfu/devconf_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users
Michael Boudreau
Senior Publishing Technology Analyst
The University of Chicago Press
1427 E. 60th Street
Chicago, IL 60637
(773) 753-3298 fax: (773) 753-3383
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users