All pastes #745675 Raw Edit

Auth

public text v1 · immutable
·published 2007-10-22 16:16 UTC
rendered paste body
    Alias /cgi/ "/opt/apache/cgi/"
    <Directory "/opt/apache/cgi">
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride None
    Order Allow,Deny
    Allow From All
    PerlAuthenHandler ApachePerl::AuthGDBM
    <Files ~ "\.(cgi|pl)$">
      SetHandler perl-script
      PerlHandler ModPerl::Registry
      PerlAuthzHandler ApachePerl::CgiAccess
      PerlFixupHandler  ApachePerl::PnotesMenu
      PerlOptions +ParseHeaders
      PerlSendHeader On
    </Files>
    <Files .phtml>
      Order Deny,Allow
      Deny From All
    </Files>
    <Limit GET POST>
      Order allow,deny
      Allow from all
      AuthName SecureLogin
      AuthType Basic
      require valid-user
    </Limit>
  </Directory>

  Alias /admin/ "/opt/apache/admin/"
  <Directory "/opt/apache/admin">
    Options Indexes FollowSymlinks ExecCGI
    <Files ~ "\.(cgi|pl)$">
     SetHandler cgi-script
    </Files>
    AuthName SecureAdmin
    AuthType Basic
    AuthUserFile /opt/apache/conf/users
    AllowOverride None
    Order Allow,Deny
    Allow From All
    <Limit GET POST>
     require user admin
    </Limit>
  </Directory>