--- loncom/loncapa_apache.conf 2009/07/07 19:50:44 1.186 +++ loncom/loncapa_apache.conf 2010/03/10 21:25:22 1.193 @@ -1,7 +1,7 @@ ## ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file ## -## $Id: loncapa_apache.conf,v 1.186 2009/07/07 19:50:44 droeschl Exp $ +## $Id: loncapa_apache.conf,v 1.193 2010/03/10 21:25:22 droeschl Exp $ ## # @@ -55,6 +55,12 @@ PerlSetVar lonOtherAuthen no 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 @@ -344,7 +350,7 @@ PerlCleanupHandler Apache::lonindexer::c PerlCleanupHandler Apache::lonacc::cleanup - + SetHandler perl-script PerlHandler Apache::lontex @@ -393,7 +399,7 @@ SetHandler perl-script PerlHandler Apache::lonhomework - + SetHandler perl-script PerlHandler Apache::lonxml @@ -497,34 +503,35 @@ ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler - + AuthType LONCAPA Require valid-user PerlAuthzHandler Apache::lonacc SetHandler perl-script -PerlHandler Apache::lonremote +PerlHandler Apache::lonpickauthor ErrorDocument 403 /adm/login -ErrorDocument 500 /adm/errorhandler +ErrorDocument 500 /adm/errorhandler - + AuthType LONCAPA Require valid-user PerlAuthzHandler Apache::lonacc SetHandler perl-script -PerlHandler Apache::lonpickauthor +PerlHandler Apache::lonpickstudent ErrorDocument 403 /adm/login -ErrorDocument 500 /adm/errorhandler +ErrorDocument 500 /adm/errorhandler - + AuthType LONCAPA Require valid-user PerlAuthzHandler Apache::lonacc SetHandler perl-script -PerlHandler Apache::lonpickstudent +PerlHandler Apache::lonpickuser ErrorDocument 403 /adm/login -ErrorDocument 500 /adm/errorhandler +ErrorDocument 406 /adm/roles +ErrorDocument 500 /adm/errorhandler @@ -733,6 +740,17 @@ ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler + +AuthType LONCAPA +Require valid-user +PerlAuthzHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonrequestcourse +ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles +ErrorDocument 500 /adm/errorhandler + + AuthType LONCAPA Require valid-user @@ -1201,13 +1219,12 @@ ErrorDocument 500 /adm/errorhandler +PerlAccessHandler Apache::publiccheck AuthType LONCAPA Require valid-user PerlAuthzHandler Apache::lonacc -SetHandler perl-script -PerlHandler Apache::lonblockingstatus -ErrorDocument 403 /adm/login -ErrorDocument 500 /adm/errorhandler +SetHandler perl-script +PerlHandler Apache::lonblockingstatus @@ -1258,6 +1275,7 @@ ErrorDocument 500 /adm/errorhandler SetHandler perl-script PerlHandler Apache::coursecatalog +PerlAccessHandler Apache::publiccheck ErrorDocument 500 /adm/errorhandler