Apache-DnsZone
view release on metacpan or search on metacpan
conf/dnszone.conf view on Meta::CPAN
PerlModule Apache::DBI
PerlModule Apache::DnsZone
PerlModule Apache::DnsZone::DB::MySQL
<VirtualHost 127.0.0.1>
ServerAdmin admin@localhost
DocumentRoot /usr/local/modperl/htdocs
ServerName localhost
ErrorLog logs/dnszone-error_log
TransferLog logs/dnszone-access_log
PerlSetVar DnsZoneDBsrc 'dbi:mysql:dnszone'
PerlSetVar DnsZoneDBuser 'dnszone'
PerlSetVar DnsZoneDBpass '*******'
PerlSetVar DnsZoneDebugLevel 1
PerlSetVar DnsZoneLangDir '/usr/local/modperl/dnszone'
PerlSetVar DnsZoneTemplateDir '/usr/local/modperl/dnszone/template'
PerlSetVar DnsZoneLoginLang 'en'
PerlSetVar DnsZoneLogoutHandler /logout
PerlModule Apache::DnsZone::AuthCookie
PerlSetVar DnsZoneTicketTable 'tickets:ticket_hash:ts'
PerlSetVar DnsZoneTicketUserTable 'users:username:password'
PerlSetVar DnsZoneTicketPasswordStyle cleartext
PerlSetVar DnsZoneTicketSecretTable 'ticketsecrets:sec_data:sec_version'
PerlSetVar DnsZoneTicketExpires 60
PerlSetVar DnsZoneTicketLogoutURI /
PerlSetVar DnsZoneTicketLoginHandler /login
PerlSetVar DnsZoneTicketIdleTimeout 10
PerlSetVar DnsZonePath /
PerlSetVar DnsZoneLoginScript /loginform
<Location /admin>
SetHandler perl-script
PerlHandler Apache::DnsZone
AuthType Apache::DnsZone::AuthCookie
AuthName DnsZone
PerlAuthenHandler Apache::DnsZone::AuthCookie->authenticate
PerlAuthzHandler Apache::DnsZone::AuthCookie->authorize
require valid-user
</Location>
<Location /loginform>
SetHandler perl-script
Perlhandler Apache::DnsZone::AuthCookie->login_screen
AuthType Apache::DnsZone::AuthCookie
AuthName DnsZone
</Location>
<Location /login>
SetHandler perl-script
PerlHandler Apache::DnsZone::AuthCookie->login
AuthType Apache::DnsZone::AuthCookie
AuthName DnsZone
</Location>
<Location /logout>
SetHandler perl-script
PerlHandler Apache::DnsZone::AuthCookie->logout
AuthType Apache::DnsZone::AuthCookie
AuthName DnsZone
</Location>
</VirtualHost>
( run in 0.998 second using v1.01-cache-2.11-cpan-39bf76dae61 )