Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > b19212d1d821b5016fd913fedcadbd3c > files > 1

mason-1.420.0-1mdv2010.0.noarch.rpm

# mason Apache configuration
<IfModule mod_perl.c>

    # Make sure to preload as much code as we can in the parent process.
    PerlModule HTML::Mason::ApacheHandler

    # Apache args method with Mason
    PerlOptions +GlobalRequest
    PerlModule Apache2::Request
    PerlSetVar MasonArgsMethod mod_perl

    # component root
    PerlSetVar MasonCompRoot "/var/www/mason"

    # data directory
    PerlSetVar MasonDataDir "/var/cache/mason"


    # Serve these requests through Mason.
    <LocationMatch "^/mason.*(\.html|\.pl|\.txt)$">
        SetHandler perl-script
        PerlResponseHandler HTML::Mason::ApacheHandler
    </LocationMatch>

    # Hide private components from users.
    <LocationMatch "^/mason.*(dhandler|autohandler|\.m(html|txt|pl))$">
        SetHandler perl-script
        PerlInitHandler Apache::Constants::NOT_FOUND
    </LocationMatch>
</ifModule>