this almost works. but i can't find the docs explaining why not:
#httpd.conf
<Perl>
use HTML::Mason::ApacheHandler ();
use Apache::Constants ();
require '/var/www/mtinker/mason.pl';
$VirtualHost{"127.0.0.1"} = [
{
DocumentRoot => '/var/www',
Alias => '/icons/ /usr/share/apache/icons/',
FilesMatch => {
'(\.html?|\.md|\.mason|^[^\.]+)$' => {
SetHandler => 'perl-script',
PerlHandler => 'HTML::Mason::ApacheHandler',
},
'(\.mc$)' => {
SetHandler => 'perl-script',
PerlHandler => 'Apache::Constants::NOT_FOUND',
},
},
Location => {
'/mtinker/' => {
# PerlRequre => '/var/www/mtinker/mason.pl',
SetHandler => 'perl-script',
PerlHandler => 'tinker::mason::handler',
},
'/' => {
Limit => {
METHODS => 'GET POST',
Order => 'allow,deny', # WTF? no workee
Allow => 'from any', # WTF? no workee
},
},
},
},
# {
# another virtual host config here, eventually...
# },
];
</Perl>
http://perl.apache.org/guide/config.html mentions this type of
thing in passing, but surely there's an in-depth
"how-this-works" somewhere...
<Limit GET POST>
Order allow,deny
Allow from all
</Limit>
how would we know to translate that to
...
Limit => {
METHODS => 'GET POST',
Order => 'allow,deny',
Allow => 'from all',
},
instead of to
Limit => {
'GET POST' => {
Order => 'allow,deny',
Allow => 'from all',
}
}
for example? where's the blinkin' manual? or maybe someone has a
large perl config that the rest of us can glean from? hmm?
--
I'd concentrate on "living in the now" because it is fun
and on building a better world because it is possible.
- Tod Steward
[EMAIL PROTECTED]
http://sourceforge.net/projects/newbiedoc -- we need your brain!
http://www.dontUthink.com/ -- your brain needs us!