Apache-Centipaid

 view release on metacpan or  search on metacpan

config/httpd.conf-dist  view on Meta::CPAN

#
# sample virtual host for site using Apache::Centipaid to grant
# access to users after paying the requiered fee "amount"
# 
<VirtualHost 127.0.0.1:80>

    ServerName  perl.centipaid.com
    ServerAdmin adonis@aynacorp.com
    DocumentRoot /home/adonis/centipaid/www
    ErrorLog logs/error_log
    CustomLog logs/access_log common


    # assuming that we want to protect a directory, 
    # then we ass the following 
    <directory /home/adonis/centipaid/www/custom>
    AuthName Centipaid
    AuthType Cookie
    PerlAuthenHandler Apache::Centipaid
    require valid-user 

    # debug level 5 shows everything, 0 show nothing
    PerlSetVar debug 0

    # payee information
    # To signup for an account go to www.centipaid.com
    PerlSetVar acct AEF001
    PerlSetVar pass adonis
    PerlSetVar amount 0.005
    PerlSetVar duration 1d
    PerlSetVar lang en
    PerlSetVar enforce_ip 0
    
    # centipaid receipt server assigned to payee
    PerlSetVar authserver localhost
    PerlSetvar authport 2021
    
    # mysql database to hold the receipts
    PerlSetVar dbtype mysql
    PerlSetVar dbhost localhost
    PerlSetVar dbport 3306
    PerlSetVar dbname centipaid_rcpt
    perlSetVar dbuser root
    perlSetVar dbpass pass
    
    </directory>
    


</VirtualHost>



( run in 1.024 second using v1.01-cache-2.11-cpan-39bf76dae61 )