--- loncom/loncapa_apache.conf 2008/11/28 19:38:05 1.181 +++ loncom/loncapa_apache.conf 2010/05/11 23:41:04 1.181.2.4 @@ -1,7 +1,7 @@ ## ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file ## -## $Id: loncapa_apache.conf,v 1.181 2008/11/28 19:38:05 raeburn Exp $ +## $Id: loncapa_apache.conf,v 1.181.2.4 2010/05/11 23:41:04 raeburn Exp $ ## # @@ -51,6 +51,16 @@ PerlAuthenHandler Apache::checkauthen PerlSetVar lonOtherAuthen no #PerlWarn On + +PerlAuthenHandler 'sub { return OK }' + + +# Send proper expires header to avoid unnecessary HTTP request for static content + + ExpiresActive On + ExpiresDefault "access plus 12 hours" + + AuthType LONCAPA @@ -101,11 +111,6 @@ PerlCleanupHandler Apache::lontokacc::re PerlCleanupHandler Apache::lonacc::cleanup - -SetHandler perl-script -PerlHandler Apache::lonpdfupload - - AuthType LONCAPA Require valid-user @@ -744,6 +749,15 @@ PerlHandler Apache::domainprefs ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler + + + +PerlAccessHandler Apache::lonstatusacc +SetHandler perl-script +PerlHandler Apache::domainstatus +ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles +ErrorDocument 500 /adm/errorhandler