Order allow,deny Allow from all Alias /sample /home/tkay/src/site_control2/sample PerlAddVar MasonCompRoot "sample => /home/tkay/src/site_control2/sample" PerlModule Apache2::SiteControl # This require is not needed if you installed Apache2::SiteControl in your # system paths PerlRequire "/home/tkay/src/site_control2/sample/apache_modperlinit.pl" # Directory of protected stuff...the login page should go in /sample # Set up the method of credential verification. See SimpleAuth.pm in this # directory, or Apache2::SiteControl for help on making your own. PerlSetVar SiteControlMethod SimpleAuth # Turn on debugging PerlSetVar SiteControlDebug 1 # Configure the factories. See Apache2::SiteControl::UserFactory and # Apache2::SiteControl::ManagerFactory PerlSetVar SiteControlManagerFactory MyPermissionFactory # Configure the location of the session data on server disks PerlSetVar SiteControlSessions /tmp/sample_sessions PerlSetVar SiteControlLocks /tmp/sample_sessions/locks # Choose a name for the instance of the authenticator. This name is # used as part of the remaining variable names. PerlSetVar AuthName sample # Set the path that will be protected PerlSetVar samplePath /sample # Indicate the path to the login page. Be careful, HTML::Mason can # interfere with proper handling...make sure you know your dependencies. # See samples and Apache2::AuthCookie for more information. PerlSetVar sampleLoginScript /sample/samplelogin.pl # See Apache2::AuthCookie for descriptions of these. PerlSetVar sampleSatisfy All PerlSetVar sampleDomain .uoregon.edu PerlSetVar sampleCache 1 PerlSetVar sampleExpires +2h SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler AuthType Apache2::SiteControl AuthName sample # Tell mod_perl that you want this module to control access: PerlAuthenHandler Apache2::SiteControl->authenticate PerlAuthzHandler Apache2::SiteControl->authorize require valid-user SetHandler perl-script PerlHandler Apache2::Registry Options +ExecCGI # Set up the method of credential verification. See SimpleAuth.pm in this # directory, or Apache2::SiteControl for help on making your own. PerlSetVar SiteControlMethod SimpleAuth # Turn on debugging PerlSetVar SiteControlDebug 1 # Configure the factories. See Apache2::SiteControl::UserFactory and # Apache2::SiteControl::ManagerFactory PerlSetVar SiteControlManagerFactory MyPermissionFactory # Configure the location of the session data on server disks PerlSetVar SiteControlSessions /tmp/sample_sessions PerlSetVar SiteControlLocks /tmp/sample_sessions/locks # Choose a name for the instance of the authenticator. This name is # used as part of the remaining variable names. PerlSetVar AuthName sample # Set the path that will be protected PerlSetVar samplePath /sample # Indicate the path to the login page. Be careful, HTML::Mason can # interfere with proper handling...make sure you know your dependencies. # See samples and Apache2::AuthCookie for more information. PerlSetVar sampleLoginScript /sample/samplelogin.pl # See Apache2::AuthCookie for descriptions of these. PerlSetVar sampleSatisfy All PerlSetVar sampleDomain .uoregon.edu PerlSetVar sampleCache 1 PerlSetVar sampleExpires +2h AuthType Apache2::SiteControl AuthName sample SetHandler perl-script PerlHandler Apache2::SiteControl->login