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>
<LimitExcept GET POST>
Order Deny,Allow
Deny From All
</LimitExcept>
</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>