--- loncom/loncapa_apache.conf 2003/08/25 17:20:09 1.60 +++ loncom/loncapa_apache.conf 2004/04/01 14:28:49 1.76 @@ -1,7 +1,7 @@ ## ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file ## -## $Id: loncapa_apache.conf,v 1.60 2003/08/25 17:20:09 albertel Exp $ +## $Id: loncapa_apache.conf,v 1.76 2004/04/01 14:28:49 albertel Exp $ ## # @@ -23,6 +23,9 @@ LoadModule perl_module modules/lib AddModule mod_perl.c + +PerlSetVar MODPERL2 1 + # =============================================================== Miscellaneous ServerAdmin korte@lite.msu.edu @@ -54,17 +57,34 @@ ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler + +PerlAccessHandler Apache::lonenc +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler + + PerlAccessHandler Apache::lontokacc PerlCleanupHandler Apache::lontokacc::removefile -PerlAccessHandler Apache::lonuploadedacc +PerlAccessHandler Apache::lonacc +PerlHeaderParserHandler Apache::lonuploadrep ErrorDocument 404 /adm/notfound.html ErrorDocument 500 /adm/errorhandler + +SetHandler perl-script +PerlHandler Apache::lonpage + + + +SetHandler perl-script +PerlHandler Apache::lonsequence + + PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -176,43 +196,51 @@ ErrorDocument 500 /adm/errorhandler # --------------------------------------------- Resource Space Content Handlers - + SetHandler perl-script PerlHandler Apache::lonindexer PerlCleanupHandler Apache::lonindexer::cleanup - + SetHandler perl-script PerlHandler Apache::lontex - + SetHandler perl-script PerlHandler Apache::lonpage - + SetHandler perl-script PerlHandler Apache::lonsequence - + SetHandler perl-script PerlHandler Apache::lonmeta - + +SetHandler perl-script +PerlAccessHandler Apache::lonacc +PerlHandler Apache::lonmeta + + + + + SetHandler perl-script PerlHandler Apache::lonrights - + SetHandler perl-script PerlHandler Apache::lonxml - + SetHandler perl-script PerlHandler Apache::lonhomework @@ -225,6 +253,14 @@ ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler + +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonlocal +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler + + # -------------------------------------------------------------- Admin Programs @@ -235,6 +271,14 @@ ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler + +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::imagechoice +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler + + PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -380,6 +424,15 @@ ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler + +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonmodifycourse +ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles +ErrorDocument 500 /adm/errorhandler + + PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -399,7 +452,7 @@ ErrorDocument 406 /adm/unauthorized ErrorDocument 500 /adm/errorhandler - + PerlAccessHandler Apache::loncacc SetHandler perl-script PerlHandler Apache::lonpubdir @@ -468,6 +521,26 @@ ErrorDocument 406 /adm/unauthorized ErrorDocument 500 /adm/errorhandler + +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::imsimport +ErrorDocument 403 /adm/login +ErrorDocument 404 /adm/notfound.html +ErrorDocument 406 /adm/unauthorized +ErrorDocument 500 /adm/errorhandler + + + +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::testbankimport +ErrorDocument 403 /adm/login +ErrorDocument 404 /adm/notfound.html +ErrorDocument 406 /adm/unauthorized +ErrorDocument 500 /adm/errorhandler + + PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -507,6 +580,15 @@ ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler + +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::lonpopulate +ErrorDocument 403 /adm/login +ErrorDocument 406 /adm/roles +ErrorDocument 500 /adm/errorhandler + + PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -536,12 +618,20 @@ ErrorDocument 500 /adm/errorhandler PerlAccessHandler Apache::lonacc SetHandler perl-script -PerlCleanupHandler Apache::londocs::untiehash PerlHandler Apache::londocs + PerlCleanupHandler Apache::londocs::untiehash ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler + +PerlAccessHandler Apache::lonacc +SetHandler perl-script +PerlHandler Apache::imsimportdocs +ErrorDocument 403 /adm/login +ErrorDocument 500 /adm/errorhandler + + PerlAccessHandler Apache::lonacc SetHandler perl-script @@ -641,6 +731,7 @@ PerlHandler Apache::lonerrorhandler +PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonhelp @@ -689,6 +780,20 @@ AuthUserFile /home/httpd/lonTabs/htpassw require user reaper + +AuthName "Offline" +AuthType Basic +AuthUserFile /home/httpd/lonTabs/htpasswd +require user offline + + + +AuthName "Offline" +AuthType Basic +AuthUserFile /home/httpd/lonTabs/htpasswd +require user offline + + AuthName "LON-CAPA Network Administration" AuthType Basic @@ -777,6 +882,8 @@ PerlSetVar lonBrowsDet netscape:m PerlSetVar lonTextBrowsers opera:windows\s+ce:lynx PerlSetVar lonScansDir /home/httpd/scantron PerlSetVar lonScriptTimeout 10 +PerlSetVar BugzillaHost http://bugs.lon-capa.org/ +PerlSetVar FAQHost http://help.lon-capa.org/ # ----------------------------------------------------------------------------- # NOTE: lonSqlAccess key is the password for the MySQL user # www@localhost. This value must always be "localhostkey". @@ -797,6 +904,10 @@ PerlSetVar lonhttpdPort 8080 Include conf/loncapa.conf +# ================================================= Include local configuration + +Include conf/loncapa_apache_local*.conf + # ================================================== Initiate mod_perl starting PerlRequire conf/startup.pl