[Catalyst] trouble with LocationMatch

Sean Comeau scomeau at obscurity.org
Thu Dec 8 22:57:32 CET 2005


On Thu, Dec 08, 2005 at 04:36:54PM -0500, Andy Grundman wrote:
> 
> Can you include your Apache config so we can test?
> 

<VirtualHost 10.6.9.39:81>
    ServerAdmin root at x.com
    DocumentRoot /htdocs
    ServerName x.com
    ErrorLog logs/x.com-error_log
    CustomLog logs/x.com-access_log combined
    PerlSwitches -T

    PerlSetVar  TemplateDir  '/templates'
    <LocationMatch "/[\w-]+$">
        SetHandler perl-script
        PerlResponseHandler  Apache2::TemplateOverride
    </LocationMatch>
    <LocationMatch ".*/$">
        SetHandler perl-script
        PerlResponseHandler  Apache2::TemplateOverride
    </LocationMatch>
    <LocationMatch ".+\.html$">
        SetHandler perl-script
        PerlResponseHandler  Apache2::TemplateOverride
    </LocationMatch>
    PerlModule CoreStore
    <LocationMatch "/(cart|orders|checkout)/{0,1}(\w+/{0,1})*$">
        SetHandler perl-script
        PerlResponseHandler  CoreStore
    </LocationMatch>

    # Allow server status reports generated by mod_status,
    # but only locally. Enables 'status' command to work
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 10.6.9.39
    </Location>
</VirtualHost>



More information about the Catalyst mailing list