in reply to Re^2: mod_perl without separate config for static HTML?
in thread mod_perl without separate config for static HTML?
Here's a fairly typical Apache::Registry config:
<Location /cgi/> SetHandler perl-script PerlHandler Apache::Registry Options ExecCGI </Location>
Now, everything under the 'cgi' dir will be executed under Apache::Registry, and everything else (assuming you don't have other 'Location' etc. directives setup) will just be static.
You can even use the 'Alias' directive to make the cgi dir outside of your public directories (usually a good idea).
The ineffeciencies I metentioned just refered to the fact that I was using 'LocationMatch' which might not be necessary for what you're trying to do.
As someone else mentioned, look at the apache docs and mod_perl docs. Apache/mod_perl config is an art from in itself, and it's definitely something you want to have a handle on if you're worried about performance
|
|---|