mboudreau has asked for the wisdom of the Perl Monks concerning the following question:
I'm setting up a new iMac with Snow Leopard and its default software: Apache 2.2.11, Perl 5.10.0, and mod_perl 2.0.4.
I have installed HTML::Mason and updated the Apache httpd.conf file with the same additions as my previous Mac, where Mason worked perfectly:
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>
And of course I restarted Apache so that it would read the updated httpd.conf file.
Now I find that trying to view http://localhost/~mrb/somefile.mhtml, which should match the 'LocationMatch' directive above, doesn't invoke Mason to handle its content. However, the same file, same filename and extension, accessed at http://localhost/somefile.mhtml, is handled by Mason as it should be.
Has anyone else run across a problem like this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "~" and HTML::Mason and Apache on Snow Leopard
by Joost (Canon) on Sep 30, 2009 at 21:40 UTC |