File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.215.2.29: download - view: text, annotated - select for diffs
Sat Sep 12 17:57:03 2020 UTC (3 years, 7 months ago) by raeburn
Branches: version_2_11_X
CVS tags: version_2_11_3_uiuc, version_2_11_3
- For 2.11
  Include changes in 1.274

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: 
    5: # $Id: loncapa_apache.conf,v 1.215.2.29 2020/09/12 17:57:03 raeburn Exp $
    6: 
    7: #
    8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
    9: #
   10: # ================================================================ DocumentRoot
   11: 
   12: DocumentRoot "/home/httpd/html"
   13: 
   14: # ======================================================================== User
   15: 
   16: User www
   17: Group www
   18: 
   19: # ======================================================= Shared Object Modules
   20: 
   21: <IfModule !perl_module>
   22:     LoadModule perl_module       modules/libperl.so
   23: </IfModule>
   24: <IfDefine !MODPERL2>
   25: AddModule mod_perl.c
   26: </IfDefine>
   27: 
   28: <IfDefine MODPERL2>
   29: PerlSetVar	MODPERL2	1
   30: </IfDefine>
   31: # =============================================================== Miscellaneous
   32: 
   33: ServerAdmin consortium@loncapa.org
   34: ExtendedStatus On
   35: #
   36: # LON-CAPA Section (extensions to srm.conf name space servicing)
   37: #
   38: # ===================================================================== Aliases
   39: 
   40: Alias /zipspool/ /home/httpd/zipspool/
   41: Alias /prtspool/ /home/httpd/prtspool/
   42: Alias /captchaspool/ /home/httpd/captchaspool/
   43: Alias /webdav/ /home/httpd/html/priv/
   44: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
   45: <IfModule mod_dav_fs.c>
   46:     DAVLockDB /home/httpd/webdav/DAVLock
   47: </IfModule>
   48: 
   49: # ================================================================= Directories
   50: 
   51: # ------------------------------------------------------------- Access Handlers
   52: 
   53: PerlTransHandler	Apache::lontrans
   54: PerlCleanupHandler	Apache::lonacc::cleanup
   55: 
   56: PerlAuthenHandler Apache::checkauthen
   57: PerlSetVar lonOtherAuthen no
   58: 
   59: <IfModule mod_shib>
   60:     PerlAuthenHandler Apache::lonshibauth
   61:     PerlSetVar lonOtherAuthen yes
   62:     PerlSetVar lonOtherAuthenType Shibboleth
   63: </IfModule>
   64: 
   65: #PerlWarn On
   66: <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
   67: PerlAuthzHandler	'sub { return OK }' 
   68: </LocationMatch>
   69: 
   70: # Send proper expires header to avoid unnecessary HTTP request for static content
   71: <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/res/adm/pages|/ckeditor|/adm/jpicker|/adm/countdown|/adm/spellchecker|/adm/nicescroll|/adm/MathJax)">
   72:         ExpiresActive On
   73:         ExpiresDefault "access plus 12 hours"
   74:         Header set Cache-Control "public, no-transform"
   75: </LocationMatch>
   76: 
   77: <LocationMatch "^/+res.*">
   78: 
   79: AuthType LONCAPA
   80: Require valid-user
   81: 
   82: PerlAccessHandler      Apache::publiccheck
   83: PerlAuthzHandler       Apache::lonacc
   84: PerlHeaderParserHandler Apache::lonrep
   85: ErrorDocument     403 /adm/login
   86: ErrorDocument     404 /adm/notfound.html
   87: ErrorDocument     406 /adm/roles
   88: ErrorDocument	  500 /adm/errorhandler
   89: </LocationMatch>
   90: 
   91: 
   92: <LocationMatch "/.*">
   93: </LocationMatch>
   94: 
   95: 
   96: <LocationMatch "^/+enc.*">
   97: SetHandler perl-script
   98: PerlHandler       Apache::lonencurl
   99: ErrorDocument     403 /adm/login
  100: ErrorDocument     404 /adm/notfound.html
  101: ErrorDocument     406 /adm/roles
  102: ErrorDocument	  500 /adm/errorhandler
  103: </LocationMatch>
  104: 
  105: <Location /adm/portfolio>
  106: AuthType LONCAPA
  107: Require valid-user
  108: PerlAuthzHandler Apache::lonacc
  109: SetHandler perl-script
  110: PerlHandler Apache::portfolio
  111: </Location>
  112: 
  113: <Location /adm/coursegrp_portfolio>
  114: AuthType LONCAPA
  115: Require valid-user
  116: PerlAuthzHandler Apache::lonacc
  117: SetHandler perl-script
  118: PerlHandler Apache::portfolio
  119: </Location>
  120: 
  121: <Location /adm/pdfupload>
  122: AuthType LONCAPA
  123: Require valid-user
  124: PerlAuthzHandler Apache::lonacc
  125: SetHandler perl-script
  126: PerlHandler             Apache::lonpdfupload
  127: ErrorDocument     403 /adm/login
  128: ErrorDocument     404 /adm/notfound.html
  129: ErrorDocument     406 /adm/roles
  130: ErrorDocument     500 /adm/errorhandler
  131: </Location>
  132: 
  133: <LocationMatch "^/+userfiles.*">
  134: Options +FollowSymLinks -Includes
  135: PerlAccessHandler       Apache::lontokacc
  136: PerlCleanupHandler	Apache::lontokacc::removefile
  137: PerlCleanupHandler	Apache::lonacc::cleanup
  138: </LocationMatch>
  139: 
  140: <LocationMatch "^/+uploaded.*">
  141: AuthType LONCAPA
  142: Require valid-user
  143: PerlAuthzHandler	Apache::lonacc
  144: PerlHandler 		Apache::londatecheck
  145: PerlHandler  		Apache::lonipcheck
  146: PerlHeaderParserHandler Apache::lonuploadrep
  147: ErrorDocument     403 /adm/login
  148: ErrorDocument     404 /adm/notfound.html
  149: ErrorDocument     406 /adm/roles
  150: ErrorDocument	  500 /adm/errorhandler
  151: </LocationMatch>
  152: 
  153: <LocationMatch "^/+uploaded/.+/.+/(portfolio|feedback|docs|groups|supplemental)/.+">
  154:    Options +FollowSymLinks -Includes
  155: </LocationMatch>
  156: 
  157: <LocationMatch "^/+editupload.*">
  158: AuthType LONCAPA
  159: Require valid-user
  160: PerlAuthzHandler	Apache::lonacc
  161: ErrorDocument     403 /adm/login
  162: ErrorDocument     406 /adm/roles
  163: ErrorDocument	  500 /adm/errorhandler
  164: </LocationMatch>
  165: 
  166: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
  167: PerlAuthenHandler	Apache::lonuploadedacc
  168: PerlAuthzHandler	Apache::lonuploadedacc::skip_phase
  169: PerlAccessHandler	Apache::lonuploadedacc::skip_phase
  170: </LocationMatch>
  171: 
  172: <LocationMatch "^/+uploaded/.*/.*/portfolio/.*">
  173: PerlAccessHandler      Apache::publiccheck
  174: AuthType LONCAPA
  175: Require valid-user
  176: PerlAuthzHandler       Apache::lonacc
  177: </LocationMatch>
  178: 
  179: <LocationMatch "^/+uploaded/.*/.*/groups/.*/portfolio/.*">
  180: PerlAccessHandler      Apache::publiccheck
  181: AuthType LONCAPA
  182: Require valid-user
  183: PerlAuthzHandler       Apache::lonacc
  184: </LocationMatch>
  185: 
  186: <LocationMatch "^/+uploaded/.*\.page$">
  187: SetHandler perl-script
  188: PerlHandler Apache::lonpage
  189: </LocationMatch>
  190: 
  191: <LocationMatch "^/+uploaded/.*\.sequence$">
  192: SetHandler perl-script
  193: PerlHandler Apache::lonsequence
  194: </LocationMatch>
  195: 
  196: <LocationMatch "^/+public/.*/syllabus$">
  197: PerlAccessHandler      Apache::publiccheck
  198: AuthType LONCAPA
  199: Require valid-user
  200: PerlAuthzHandler	Apache::lonacc
  201: SetHandler              perl-script
  202: PerlHandler             Apache::lonsyllabus
  203: ErrorDocument     404 /adm/notfound.html
  204: ErrorDocument	  500 /adm/errorhandler
  205: </LocationMatch>
  206: 
  207: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
  208: PerlAccessHandler      Apache::publiccheck
  209: AuthType LONCAPA
  210: Require valid-user
  211: PerlAuthzHandler	Apache::lonacc
  212: SetHandler              perl-script
  213: PerlHandler             Apache::lonrss
  214: ErrorDocument     404 /adm/notfound.html
  215: ErrorDocument	  500 /adm/errorhandler
  216: </LocationMatch>
  217: 
  218: <LocationMatch "^/adm/.*/aboutme$">
  219: AuthType LONCAPA
  220: Require valid-user
  221: PerlAuthzHandler	Apache::lonacc
  222: SetHandler              perl-script
  223: PerlHandler             Apache::lonaboutme
  224: ErrorDocument     404 /adm/notfound.html
  225: ErrorDocument     406 /adm/notinit.html
  226: ErrorDocument	  500 /adm/errorhandler
  227: </LocationMatch>
  228: 
  229: <LocationMatch "^/adm/.*/aboutme/portfolio$">
  230: PerlAccessHandler       Apache::publiccheck
  231: AuthType LONCAPA
  232: Require valid-user
  233: PerlAuthzHandler	Apache::lonacc
  234: SetHandler              perl-script
  235: PerlHandler             Apache::lonaboutme
  236: ErrorDocument     404 /adm/notfound.html
  237: ErrorDocument     406 /adm/notinit.html
  238: ErrorDocument	  500 /adm/errorhandler
  239: </LocationMatch>
  240: 
  241: <LocationMatch "^/adm/.*/smppg$">
  242: AuthType LONCAPA
  243: Require valid-user
  244: PerlAuthzHandler	Apache::lonacc
  245: SetHandler              perl-script
  246: PerlHandler             Apache::londatecheck
  247: PerlHandler		Apache::lonipcheck
  248: PerlHandler             Apache::lonsimplepage
  249: ErrorDocument     404 /adm/notfound.html
  250: ErrorDocument     406 /adm/notinit.html
  251: ErrorDocument	  500 /adm/errorhandler
  252: </LocationMatch>
  253: 
  254: <LocationMatch "^/adm/.*/bulletinboard$">
  255: AuthType LONCAPA
  256: Require valid-user
  257: PerlAuthzHandler	Apache::lonacc
  258: SetHandler              perl-script
  259: PerlHandler             Apache::londatecheck
  260: PerlHandler		Apache::lonipcheck
  261: PerlHandler             Apache::lonbulletin
  262: ErrorDocument     404 /adm/notfound.html
  263: ErrorDocument     406 /adm/notinit.html
  264: ErrorDocument	  500 /adm/errorhandler
  265: </LocationMatch>
  266: 
  267: <LocationMatch "\.problem/smpedit$">
  268: AuthType LONCAPA
  269: Require valid-user
  270: PerlAuthzHandler	Apache::lonacc
  271: SetHandler              perl-script
  272: PerlHandler             Apache::lonsimpleproblemedit
  273: ErrorDocument     404 /adm/notfound.html
  274: ErrorDocument     406 /adm/notinit.html
  275: ErrorDocument	  500 /adm/errorhandler
  276: </LocationMatch>
  277: 
  278: <Location /adm/exturlcheck>
  279: AuthType LONCAPA
  280: Require valid-user
  281: PerlAuthzHandler  Apache::lonacc
  282: SetHandler        perl-script
  283: PerlHandler       Apache::lonexturlcheck
  284: ErrorDocument     403 /adm/login
  285: ErrorDocument     404 /adm/notfound.html
  286: ErrorDocument     406 /adm/unauthorized
  287: ErrorDocument     500 /adm/errorhandler
  288: </Location>
  289: 
  290: <LocationMatch "^/+priv/.*">
  291: AuthType LONCAPA
  292: Require valid-user
  293: PerlAuthzHandler Apache::loncacc
  294: SetHandler        perl-script
  295: ErrorDocument     403 /adm/login
  296: ErrorDocument     404 /adm/notfound.html
  297: ErrorDocument     406 /adm/unauthorized
  298: ErrorDocument	  500 /adm/errorhandler
  299: </LocationMatch>
  300: 
  301: <LocationMatch "^/+webdav/[\w\-.]+/\w[\w.\-\@]+/">
  302:   <IfModule mod_dav.c>
  303:     <IfModule mod_ssl.c>
  304:       AuthType Basic
  305:       AuthName "LONCAPA username,domain"
  306:       Require valid-user
  307:       SSLRequireSSL
  308:       PerlAuthenHandler Apache::lonwebdavauth
  309:       PerlAuthzHandler Apache::lonwebdavacc
  310:       Dav On
  311:       DirectoryIndex index.missing
  312:       Options Indexes FollowSymLinks
  313:       ErrorDocument     403 /adm/nowebdav.html
  314:       ErrorDocument     404 /adm/notfound.html
  315:       ErrorDocument     406 /adm/unauthorized
  316:       ErrorDocument     500 /adm/errorhandler
  317:     </IfModule>
  318:     <IfModule !mod_ssl.c>
  319:       <IfModule mod_rewrite.c>
  320:         RewriteEngine on
  321:         RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
  322:       </IfModule>
  323:     </IfModule>
  324:   </IfModule>
  325:   <IfModule !mod_dav.c>
  326:     <IfModule mod_rewrite.c>
  327:       RewriteEngine on
  328:       RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
  329:     </IfModule>
  330:   </IfModule>
  331: </LocationMatch>
  332: 
  333: <LocationMatch "^/+raw.*">
  334: PerlAccessHandler Apache::lonracc
  335: </LocationMatch>
  336: 
  337: <LocationMatch "^/adm/helper/.*\.helper$">
  338: AuthType LONCAPA
  339: Require valid-user
  340: PerlAuthzHandler  Apache::lonacc
  341: SetHandler        perl-script
  342: PerlHandler       Apache::lonhelper
  343: ErrorDocument     403 /adm/login
  344: ErrorDocument     404 /adm/notfound.html
  345: ErrorDocument     406 /adm/unauthorized
  346: ErrorDocument     500 /adm/errorhandler
  347: </LocationMatch>
  348: 
  349: <LocationMatch "/prtspool">
  350: AuthType LONCAPA
  351: Require valid-user
  352: PerlAuthzHandler Apache::lonacc
  353: ErrorDocument     403 /adm/login
  354: ErrorDocument     404 /adm/notfound.html
  355: ErrorDocument     406 /adm/roles
  356: ErrorDocument     413 /adm/overloaded.txt
  357: ErrorDocument	  500 /adm/errorhandler
  358: </LocationMatch>
  359: 
  360: <LocationMatch "/zipspool">
  361: AuthType LONCAPA
  362: Require valid-user
  363: PerlAuthzHandler Apache::lonacc
  364: ErrorDocument     403 /adm/login
  365: ErrorDocument     404 /adm/notfound.html
  366: ErrorDocument     406 /adm/roles
  367: ErrorDocument     413 /adm/overloaded.txt
  368: ErrorDocument	  500 /adm/errorhandler
  369: </LocationMatch>
  370: # ------------------------------------------------------------------------- RAT
  371: 
  372: <LocationMatch "^/+priv/.*\.sequence$">
  373: SetHandler perl-script
  374: PerlHandler Apache::lonratedt
  375: </LocationMatch>
  376: 
  377: <LocationMatch "^/+priv/.*\.page$">
  378: SetHandler perl-script
  379: PerlHandler Apache::lonratedt
  380: </LocationMatch>
  381: 
  382: <LocationMatch "^/+priv/.*\/ratserver$">
  383: SetHandler perl-script
  384: PerlHandler Apache::lonratsrv
  385: </LocationMatch>
  386: 
  387: <LocationMatch "^/+priv/.*\/adveditmenu$">
  388: SetHandler perl-script
  389: PerlHandler Apache::lonratmenu
  390: </LocationMatch>
  391: 
  392: <Location /adm/ratparms>
  393: AuthType LONCAPA
  394: Require valid-user
  395: PerlAuthzHandler       Apache::lonacc
  396: SetHandler perl-script
  397: PerlHandler Apache::lonratparms
  398: ErrorDocument     403 /adm/login
  399: ErrorDocument	  500 /adm/errorhandler
  400: </Location>
  401: 
  402: # --------------------------------------------- Resource Space Content Handlers
  403: 
  404: <LocationMatch "^/+res.*/$">
  405: SetHandler perl-script
  406: PerlHandler Apache::lonindexer
  407: PerlCleanupHandler Apache::lonindexer::cleanup
  408: PerlCleanupHandler	Apache::lonacc::cleanup
  409: </LocationMatch>
  410: 
  411: <LocationMatch "^/+res.*\.tex$">
  412: SetHandler perl-script
  413: PerlHandler Apache::lontex
  414: </LocationMatch>
  415: 
  416: <LocationMatch "^/+res/.*\.page$">
  417: SetHandler perl-script
  418: PerlHandler Apache::lonpage
  419: </LocationMatch>
  420: 
  421: <LocationMatch "^/+res/.*\.sequence$">
  422: SetHandler perl-script
  423: PerlHandler Apache::lonsequence
  424: </LocationMatch>
  425: 
  426: <LocationMatch "^/+(res|priv|public|uploaded|editupload|adm)/.*\.meta$">
  427: PerlAccessHandler      Apache::publiccheck
  428: SetHandler perl-script
  429: PerlHandler Apache::lonmeta
  430: ErrorDocument     413 /adm/overloaded.txt
  431: </LocationMatch>
  432: 
  433: <LocationMatch "^/adm/bombs/">
  434: AuthType LONCAPA
  435: Require valid-user
  436: PerlAuthzHandler Apache::lonacc
  437: SetHandler perl-script
  438: PerlHandler Apache::lonmeta
  439: </LocationMatch>
  440: 
  441: 
  442: 
  443: <LocationMatch "^/+(res|priv)/.*\.rights$">
  444: SetHandler perl-script
  445: PerlHandler Apache::lonrights
  446: </LocationMatch>
  447: 
  448: <LocationMatch "^/+(uploaded|res|priv)/.*\.(xml|html|htm|xhtml|xhtm|sty)$">
  449: SetHandler perl-script
  450: PerlHandler Apache::londatecheck
  451: PerlHandler Apache::lonipcheck
  452: PerlHandler Apache::lonxml
  453: </LocationMatch>
  454: 
  455: <LocationMatch "^/+(res|priv).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
  456: SetHandler perl-script
  457: PerlHandler Apache::lonhomework
  458: </LocationMatch>
  459: 
  460: <LocationMatch "^/+priv/.*\.(js|css|txt|tex)$">
  461: SetHandler perl-script
  462: PerlHandler Apache::lonxml
  463: </LocationMatch>
  464: 
  465: <LocationMatch "^/adm/wrapper/">
  466: AuthType LONCAPA
  467: Require valid-user
  468: PerlAuthzHandler       Apache::lonacc
  469: PerlHandler Apache::londatecheck
  470: PerlHandler Apache::lonipcheck
  471: SetHandler perl-script
  472: PerlHandler Apache::lonwrapper
  473: ErrorDocument     403 /adm/login
  474: ErrorDocument	  500 /adm/errorhandler
  475: </LocationMatch>
  476: 
  477: <LocationMatch "^/adm/source">
  478: AuthType LONCAPA
  479: Require valid-user
  480: PerlAuthzHandler       Apache::lonacc
  481: SetHandler perl-script
  482: PerlHandler Apache::lonsource
  483: ErrorDocument     403 /adm/login
  484: ErrorDocument     406 /adm/roles
  485: ErrorDocument	  500 /adm/errorhandler
  486: </LocationMatch>
  487: 
  488: 
  489: <LocationMatch "^/adm/localize/">
  490: AuthType LONCAPA
  491: Require valid-user
  492: PerlAuthzHandler       Apache::lonacc
  493: SetHandler perl-script
  494: PerlHandler Apache::lonlocalize
  495: ErrorDocument     403 /adm/login
  496: ErrorDocument	  500 /adm/errorhandler
  497: </LocationMatch>
  498: 
  499: # -------------------------------------------------------------- Admin Programs
  500: 
  501: <Location /adm/randomlabel.png>
  502: AuthType LONCAPA
  503: Require valid-user
  504: PerlAuthzHandler       Apache::lonacc
  505: SetHandler perl-script
  506: PerlHandler Apache::randomlylabel
  507: ErrorDocument     403 /adm/login
  508: ErrorDocument	  500 /adm/errorhandler
  509: </Location>
  510: 
  511: <Location /adm/imagechoice>
  512: AuthType LONCAPA
  513: Require valid-user
  514: PerlAuthzHandler       Apache::lonacc
  515: SetHandler perl-script
  516: PerlHandler Apache::imagechoice
  517: ErrorDocument     403 /adm/login
  518: ErrorDocument	  500 /adm/errorhandler
  519: </Location>
  520: 
  521: <Location /adm/searchcourse>
  522: AuthType LONCAPA
  523: Require valid-user
  524: PerlAuthzHandler       Apache::lonacc
  525: SetHandler perl-script
  526: PerlHandler Apache::lonsearchcourse
  527: ErrorDocument     403 /adm/login
  528: ErrorDocument     500 /adm/errorhandler
  529: </Location>
  530: 
  531: <Location /adm/statistics>
  532: AuthType LONCAPA
  533: Require valid-user
  534: PerlAuthzHandler       Apache::lonacc
  535: SetHandler perl-script
  536: PerlHandler Apache::lonstatistics
  537: ErrorDocument     403 /adm/login
  538: ErrorDocument     413 /adm/overloaded.txt
  539: ErrorDocument	  500 /adm/errorhandler
  540: </Location>
  541: 
  542: <Location /adm/trackstudent>
  543: AuthType LONCAPA
  544: Require valid-user
  545: PerlAuthzHandler       Apache::lonacc
  546: SetHandler perl-script
  547: PerlHandler Apache::lontrackstudent
  548: ErrorDocument     403 /adm/login
  549: ErrorDocument     413 /adm/overloaded.txt
  550: ErrorDocument	  500 /adm/errorhandler
  551: </Location>
  552: 
  553: <Location /adm/roles>
  554: AuthType LONCAPA
  555: Require valid-user
  556: PerlAuthzHandler       Apache::lonacc
  557: SetHandler perl-script
  558: PerlHandler Apache::lonroles
  559: ErrorDocument     403 /adm/login
  560: ErrorDocument     409 /adm/preferences?action=lockwarning
  561: ErrorDocument	  500 /adm/errorhandler
  562: </Location>
  563: 
  564: <Location /adm/menu>
  565: AuthType LONCAPA
  566: Require valid-user
  567: PerlAuthzHandler       Apache::lonacc
  568: SetHandler perl-script
  569: PerlHandler Apache::lonmainmenu
  570: ErrorDocument     403 /adm/login
  571: ErrorDocument	  500 /adm/errorhandler
  572: </Location>
  573: 
  574: <Location /adm/remote>
  575: AuthType LONCAPA
  576: Require valid-user
  577: PerlAuthzHandler       Apache::lonacc
  578: SetHandler perl-script
  579: PerlHandler Apache::lonremote
  580: ErrorDocument     403 /adm/login
  581: ErrorDocument     500 /adm/errorhandler
  582: </Location>
  583: 
  584: <Location /adm/pickauthor>
  585: AuthType LONCAPA
  586: Require valid-user
  587: PerlAuthzHandler       Apache::lonacc
  588: SetHandler perl-script
  589: PerlHandler Apache::lonpickauthor
  590: ErrorDocument     403 /adm/login
  591: ErrorDocument     500 /adm/errorhandler
  592: </Location>
  593: 
  594: <Location /adm/pickstudent>
  595: AuthType LONCAPA
  596: Require valid-user
  597: PerlAuthzHandler       Apache::lonacc
  598: SetHandler perl-script
  599: PerlHandler Apache::lonpickstudent
  600: ErrorDocument     403 /adm/login
  601: ErrorDocument	  500 /adm/errorhandler
  602: </Location>
  603: 
  604: <Location /adm/pickuser>
  605: AuthType LONCAPA
  606: Require valid-user
  607: PerlAuthzHandler       Apache::lonacc
  608: SetHandler perl-script
  609: PerlHandler Apache::lonpickuser
  610: ErrorDocument     403 /adm/login
  611: ErrorDocument     406 /adm/roles
  612: ErrorDocument     500 /adm/errorhandler
  613: </Location>
  614: 
  615: <Location /adm/pickcourse>
  616: AuthType LONCAPA
  617: Require valid-user
  618: PerlAuthzHandler       Apache::lonacc
  619: SetHandler perl-script
  620: PerlHandler Apache::lonpickcourse
  621: ErrorDocument     403 /adm/login
  622: ErrorDocument	  500 /adm/errorhandler
  623: </Location>
  624: 
  625: <Location /adm/pickcode>
  626: AuthType LONCAPA
  627: Require valid-user
  628: PerlAuthzHandler       Apache::lonacc
  629: SetHandler perl-script
  630: PerlHandler Apache::lonpickcode
  631: ErrorDocument     403 /adm/login
  632: ErrorDocument	  500 /adm/errorhandler
  633: </Location>
  634: 
  635: <Location /adm/dependencies>
  636: AuthType LONCAPA
  637: Require valid-user
  638: PerlAuthzHandler       Apache::lonacc
  639: SetHandler perl-script
  640: PerlHandler Apache::londependencies
  641: ErrorDocument     403 /adm/login
  642: ErrorDocument     406 /adm/roles
  643: ErrorDocument     500 /adm/errorhandler
  644: </Location>
  645: 
  646: <Location /adm/login>
  647: SetHandler perl-script
  648: PerlHandler Apache::lonlogin
  649: </Location>
  650: 
  651: <Location /adm/restrictedaccess>
  652: PerlAccessHandler      Apache::publiccheck
  653: AuthType LONCAPA
  654: Require valid-user
  655: PerlAuthzHandler       Apache::lonacc
  656: SetHandler perl-script
  657: PerlHandler Apache::restrictedaccess
  658: ErrorDocument	  500 /adm/errorhandler
  659: </Location>
  660: 
  661: <Location /adm/blockedaccess>
  662: PerlAccessHandler      Apache::publiccheck
  663: AuthType LONCAPA
  664: Require valid-user
  665: PerlAuthzHandler       Apache::lonacc
  666: SetHandler perl-script
  667: PerlHandler Apache::blockedaccess
  668: ErrorDocument     500 /adm/errorhandler
  669: </Location>
  670: 
  671: <Location /adm/logout>
  672: AuthType LONCAPA
  673: Require valid-user
  674: PerlAuthzHandler       Apache::lonacc
  675: SetHandler perl-script
  676: PerlHandler Apache::lonlogout
  677: ErrorDocument     403 /adm/login
  678: ErrorDocument     409 /adm/preferences?action=lockwarning
  679: ErrorDocument	  500 /adm/errorhandler
  680: </Location>
  681: 
  682: <Location /adm/switchserver>
  683: AuthType LONCAPA
  684: Require valid-user
  685: PerlAuthzHandler       Apache::lonacc
  686: SetHandler perl-script
  687: PerlHandler Apache::switchserver
  688: ErrorDocument     403 /adm/login
  689: ErrorDocument	  500 /adm/errorhandler
  690: </Location>
  691: 
  692: <Location /adm/authenticate>
  693: SetHandler perl-script
  694: PerlHandler Apache::lonauth
  695: </Location>
  696: 
  697: <Location /adm/migrateuser>
  698: SetHandler perl-script
  699: PerlHandler Apache::migrateuser
  700: </Location>
  701: 
  702: <Location /adm/sso>
  703:   <IfModule mod_shib>
  704:     AuthType shibboleth
  705:     ShibUseEnvironment On
  706:     ShibRequestSetting requireSession 1
  707:     ShibRequestSetting redirectToSSL 443
  708:     require valid-user
  709:     PerlAuthzHandler       Apache::lonshibacc
  710:     PerlAuthzHandler       Apache::lonacc
  711:   </IfModule>
  712:   <IfModule !mod_shib>
  713:     PerlTypeHandler        Apache::lonnoshib
  714:   </IfModule>
  715: </Location>
  716: 
  717: <Location /adm/annotations>
  718: AuthType LONCAPA
  719: Require valid-user
  720: PerlAuthzHandler       Apache::lonacc
  721: SetHandler perl-script
  722: PerlHandler Apache::admannotations
  723: ErrorDocument     403 /adm/login
  724: ErrorDocument	  500 /adm/errorhandler
  725: </Location>
  726: 
  727: <Location /adm/annotation>
  728: AuthType LONCAPA
  729: Require valid-user
  730: PerlAuthzHandler       Apache::lonacc
  731: SetHandler perl-script
  732: PerlHandler Apache::admannotations
  733: ErrorDocument     403 /adm/login
  734: ErrorDocument     500 /adm/errorhandler
  735: </Location>
  736: 
  737: <Location /adm/spellcheck>
  738: AuthType LONCAPA
  739: Require valid-user
  740: PerlAuthzHandler       Apache::lonacc
  741: SetHandler perl-script
  742: PerlHandler Apache::lonspeller
  743: ErrorDocument     403 /adm/login
  744: ErrorDocument	  500 /adm/errorhandler
  745: </Location>
  746: 
  747: <Location /adm/flip>
  748: AuthType LONCAPA
  749: Require valid-user
  750: PerlAuthzHandler       Apache::lonacc
  751: SetHandler perl-script
  752: PerlHandler Apache::lonpageflip
  753: PerlCleanupHandler Apache::lonpageflip::cleanup
  754: PerlCleanupHandler	Apache::lonacc::cleanup
  755: ErrorDocument     406 /adm/roles
  756: ErrorDocument     403 /adm/login
  757: ErrorDocument	  500 /adm/errorhandler
  758: </Location>
  759: 
  760: <Location /adm/ambiguous>
  761: AuthType LONCAPA
  762: Require valid-user
  763: PerlAuthzHandler       Apache::lonacc
  764: SetHandler perl-script
  765: PerlHandler Apache::lonambiguous
  766: PerlCleanupHandler Apache::lonambiguous::cleanup
  767: PerlCleanupHandler	Apache::lonacc::cleanup
  768: ErrorDocument     403 /adm/login
  769: ErrorDocument	  500 /adm/errorhandler
  770: </Location>
  771: 
  772: <Location /adm/email>
  773: AuthType LONCAPA
  774: Require valid-user
  775: PerlAuthzHandler       Apache::lonacc
  776: SetHandler perl-script
  777: PerlHandler Apache::lonmsgdisplay
  778: ErrorDocument     403 /adm/login
  779: ErrorDocument	  500 /adm/errorhandler
  780: </Location>
  781: 
  782: <Location /adm/notify>
  783: AuthType LONCAPA
  784: Require valid-user
  785: PerlAuthzHandler       Apache::lonacc
  786: SetHandler perl-script
  787: PerlHandler Apache::lonnotify
  788: ErrorDocument     403 /adm/login
  789: ErrorDocument     500 /adm/errorhandler
  790: </Location>
  791: 
  792: <Location /adm/parmset>
  793: AuthType LONCAPA
  794: Require valid-user
  795: PerlAuthzHandler       Apache::lonacc
  796: SetHandler perl-script
  797: PerlHandler Apache::lonparmset
  798: ErrorDocument     403 /adm/login
  799: ErrorDocument     406 /adm/roles
  800: ErrorDocument	  500 /adm/errorhandler
  801: </Location>
  802: 
  803: <Location /adm/courseprefs>
  804: AuthType LONCAPA
  805: Require valid-user
  806: PerlAuthzHandler       Apache::lonacc
  807: SetHandler perl-script
  808: PerlHandler Apache::courseprefs
  809: ErrorDocument     403 /adm/login
  810: ErrorDocument     406 /adm/roles
  811: ErrorDocument     500 /adm/errorhandler
  812: </Location>
  813: 
  814: <Location /adm/slotrequest>
  815: AuthType LONCAPA
  816: Require valid-user
  817: PerlAuthzHandler       Apache::lonacc
  818: SetHandler perl-script
  819: PerlHandler Apache::slotrequest
  820: ErrorDocument     403 /adm/login
  821: ErrorDocument     406 /adm/roles
  822: ErrorDocument	  500 /adm/errorhandler
  823: </Location>
  824: 
  825: <Location /adm/wizard>
  826: AuthType LONCAPA
  827: Require valid-user
  828: PerlAuthzHandler       Apache::lonacc
  829: SetHandler perl-script
  830: PerlHandler Apache::lonwizard
  831: ErrorDocument     403 /adm/login
  832: ErrorDocument     406 /adm/roles
  833: ErrorDocument	  500 /adm/errorhandler
  834: </Location>
  835: 
  836: <Location /adm/grades>
  837: AuthType LONCAPA
  838: Require valid-user
  839: PerlAuthzHandler       Apache::lonacc
  840: SetHandler perl-script
  841: PerlHandler Apache::grades
  842: ErrorDocument     403 /adm/login
  843: ErrorDocument     406 /adm/roles
  844: ErrorDocument	  500 /adm/errorhandler
  845: </Location>
  846: 
  847: <Location /adm/requestcourse>
  848: AuthType LONCAPA
  849: Require valid-user
  850: PerlAuthzHandler       Apache::lonacc
  851: SetHandler perl-script
  852: PerlHandler Apache::lonrequestcourse
  853: ErrorDocument     403 /adm/login
  854: ErrorDocument     406 /adm/roles
  855: ErrorDocument     500 /adm/errorhandler
  856: </Location>
  857: 
  858: <Location /adm/createcourse>
  859: AuthType LONCAPA
  860: Require valid-user
  861: PerlAuthzHandler       Apache::lonacc
  862: SetHandler perl-script
  863: PerlHandler Apache::loncreatecourse
  864: ErrorDocument     403 /adm/login
  865: ErrorDocument     406 /adm/roles
  866: ErrorDocument	  500 /adm/errorhandler
  867: </Location>
  868: 
  869: <Location /adm/modifycourse>
  870: AuthType LONCAPA
  871: Require valid-user
  872: PerlAuthzHandler       Apache::lonacc
  873: SetHandler perl-script
  874: PerlHandler Apache::lonmodifycourse
  875: ErrorDocument     403 /adm/login
  876: ErrorDocument     406 /adm/roles
  877: ErrorDocument     500 /adm/errorhandler
  878: </Location>
  879: 
  880: <Location /adm/domainprefs>
  881: AuthType LONCAPA
  882: Require valid-user
  883: PerlAuthzHandler       Apache::lonacc
  884: SetHandler perl-script
  885: PerlHandler Apache::domainprefs
  886: ErrorDocument     403 /adm/login
  887: ErrorDocument     406 /adm/roles
  888: ErrorDocument     500 /adm/errorhandler
  889: </Location>
  890: 
  891: <Location /adm/domainstatus>
  892: PerlAccessHandler       Apache::lonstatusacc
  893: SetHandler perl-script
  894: PerlHandler Apache::domainstatus
  895: ErrorDocument     403 /adm/login
  896: ErrorDocument     406 /adm/roles
  897: ErrorDocument     500 /adm/errorhandler
  898: </Location>
  899: 
  900: <Location /adm/createuser>
  901: AuthType LONCAPA
  902: Require valid-user
  903: PerlAuthzHandler       Apache::lonacc
  904: SetHandler perl-script
  905: PerlHandler Apache::loncreateuser
  906: ErrorDocument     403 /adm/login
  907: ErrorDocument     406 /adm/roles
  908: ErrorDocument	  500 /adm/errorhandler
  909: </Location>
  910: 
  911: <Location /adm/publish>
  912: AuthType LONCAPA
  913: Require valid-user
  914: PerlAuthzHandler       Apache::lonacc
  915: SetHandler perl-script
  916: PerlHandler Apache::lonpublisher
  917: ErrorDocument     403 /adm/login
  918: ErrorDocument     404 /adm/notfound.html
  919: ErrorDocument     406 /adm/unauthorized
  920: ErrorDocument	  500 /adm/errorhandler
  921: </Location>
  922: 
  923: <LocationMatch "^/+priv/.*/$">
  924: AuthType LONCAPA
  925: Require valid-user
  926: PerlAuthzHandler       Apache::loncacc
  927: SetHandler perl-script
  928: PerlHandler Apache::lonpubdir
  929: ErrorDocument     403 /adm/login
  930: ErrorDocument     404 /adm/notfound.html
  931: ErrorDocument     406 /adm/unauthorized
  932: ErrorDocument	  500 /adm/errorhandler
  933: </LocationMatch>
  934: 
  935: <Location /adm/unauthorized>
  936: AuthType LONCAPA
  937: Require valid-user
  938: PerlAuthzHandler       Apache::lonacc
  939: SetHandler perl-script
  940: PerlHandler Apache::lonunauthorized
  941: ErrorDocument     403 /adm/login
  942: ErrorDocument     404 /adm/notfound.html
  943: ErrorDocument	  500 /adm/errorhandler
  944: </Location>
  945: 
  946: <Location /adm/retrieve>
  947: AuthType LONCAPA
  948: Require valid-user
  949: PerlAuthzHandler       Apache::lonacc
  950: SetHandler perl-script
  951: PerlHandler Apache::lonretrieve
  952: ErrorDocument     403 /adm/login
  953: ErrorDocument     404 /adm/notfound.html
  954: ErrorDocument     406 /adm/unauthorized
  955: ErrorDocument	  500 /adm/errorhandler
  956: </Location>
  957: 
  958: <Location /adm/cleanup>
  959: AuthType LONCAPA
  960: Require valid-user
  961: PerlAuthzHandler       Apache::lonacc
  962: SetHandler perl-script
  963: PerlHandler Apache::loncleanup
  964: ErrorDocument     403 /adm/login
  965: ErrorDocument     404 /adm/notfound.html
  966: ErrorDocument     406 /adm/unauthorized
  967: ErrorDocument	  500 /adm/errorhandler
  968: </Location>
  969: 
  970: <Location /adm/cfile>
  971: AuthType LONCAPA
  972: Require valid-user
  973: PerlAuthzHandler       Apache::lonacc
  974: SetHandler perl-script
  975: PerlHandler Apache::loncfile
  976: ErrorDocument     403 /adm/login
  977: ErrorDocument     404 /adm/notfound.html
  978: ErrorDocument     406 /adm/unauthorized
  979: ErrorDocument	  500 /adm/errorhandler
  980: </Location>
  981: 
  982: <Location /adm/diff>
  983: AuthType LONCAPA
  984: Require valid-user
  985: PerlAuthzHandler       Apache::lonacc
  986: SetHandler perl-script
  987: PerlHandler Apache::londiff
  988: ErrorDocument     403 /adm/login
  989: ErrorDocument     404 /adm/notfound.html
  990: ErrorDocument     406 /adm/unauthorized
  991: ErrorDocument	  500 /adm/errorhandler
  992: </Location>
  993: 
  994: <Location /adm/upload>
  995: AuthType LONCAPA
  996: Require valid-user
  997: PerlAuthzHandler       Apache::lonacc
  998: SetHandler perl-script
  999: PerlHandler Apache::lonupload
 1000: ErrorDocument     403 /adm/login
 1001: ErrorDocument     404 /adm/notfound.html
 1002: ErrorDocument     406 /adm/unauthorized
 1003: ErrorDocument	  500 /adm/errorhandler
 1004: </Location>
 1005: 
 1006: <Location /adm/imsimport>
 1007: AuthType LONCAPA
 1008: Require valid-user
 1009: PerlAuthzHandler       Apache::lonacc
 1010: SetHandler perl-script
 1011: PerlHandler Apache::imsimport
 1012: ErrorDocument     403 /adm/login
 1013: ErrorDocument     404 /adm/notfound.html
 1014: ErrorDocument     406 /adm/unauthorized
 1015: ErrorDocument     500 /adm/errorhandler
 1016: </Location>
 1017: 
 1018: <Location /adm/testbank>
 1019: AuthType LONCAPA
 1020: Require valid-user
 1021: PerlAuthzHandler       Apache::lonacc
 1022: SetHandler perl-script
 1023: PerlHandler Apache::testbankimport
 1024: ErrorDocument     403 /adm/login
 1025: ErrorDocument     404 /adm/notfound.html
 1026: ErrorDocument     406 /adm/unauthorized
 1027: ErrorDocument     500 /adm/errorhandler
 1028: </Location>
 1029: 
 1030: <Location /adm/assesscalc>
 1031: AuthType LONCAPA
 1032: Require valid-user
 1033: PerlAuthzHandler       Apache::lonacc
 1034: SetHandler perl-script
 1035: PerlHandler Apache::lonspreadsheet
 1036: ErrorDocument     403 /adm/login
 1037: ErrorDocument     406 /adm/roles
 1038: ErrorDocument     413 /adm/overloaded.txt
 1039: ErrorDocument	  500 /adm/errorhandler
 1040: </Location>
 1041: 
 1042: <Location /adm/studentcalc>
 1043: AuthType LONCAPA
 1044: Require valid-user
 1045: PerlAuthzHandler       Apache::lonacc
 1046: SetHandler perl-script
 1047: PerlHandler Apache::lonspreadsheet
 1048: ErrorDocument     403 /adm/login
 1049: ErrorDocument     406 /adm/roles
 1050: ErrorDocument     413 /adm/overloaded.txt
 1051: ErrorDocument	  500 /adm/errorhandler
 1052: </Location>
 1053: 
 1054: <Location /adm/classcalc>
 1055: AuthType LONCAPA
 1056: Require valid-user
 1057: PerlAuthzHandler       Apache::lonacc
 1058: SetHandler perl-script
 1059: PerlHandler Apache::lonspreadsheet
 1060: ErrorDocument     403 /adm/login
 1061: ErrorDocument     406 /adm/roles
 1062: ErrorDocument     413 /adm/overloaded.txt
 1063: ErrorDocument	  500 /adm/errorhandler
 1064: </Location>
 1065: 
 1066: <Location /adm/dropadd>
 1067: AuthType LONCAPA
 1068: Require valid-user
 1069: PerlAuthzHandler       Apache::lonacc
 1070: SetHandler perl-script
 1071: PerlHandler Apache::londropadd
 1072: ErrorDocument     403 /adm/login
 1073: ErrorDocument     406 /adm/roles
 1074: ErrorDocument	  500 /adm/errorhandler
 1075: </Location>
 1076: 
 1077: <Location /adm/viewclasslist>
 1078: AuthType LONCAPA
 1079: Require valid-user
 1080: PerlAuthzHandler       Apache::lonacc
 1081: SetHandler perl-script
 1082: PerlHandler Apache::lonviewclasslist
 1083: ErrorDocument     403 /adm/login
 1084: ErrorDocument     406 /adm/roles
 1085: ErrorDocument	  500 /adm/errorhandler
 1086: </Location>
 1087: 
 1088: <Location /adm/coursegroups>
 1089: AuthType LONCAPA
 1090: Require valid-user
 1091: PerlAuthzHandler       Apache::lonacc
 1092: SetHandler perl-script
 1093: PerlHandler Apache::loncoursegroups
 1094: ErrorDocument     403 /adm/login
 1095: ErrorDocument     406 /adm/roles
 1096: ErrorDocument     500 /adm/errorhandler
 1097: </Location>
 1098: 
 1099: <Location /adm/groupboards>
 1100: AuthType LONCAPA
 1101: Require valid-user
 1102: PerlAuthzHandler       Apache::lonacc
 1103: SetHandler perl-script
 1104: PerlHandler Apache::groupboards
 1105: ErrorDocument     403 /adm/login
 1106: ErrorDocument     406 /adm/roles
 1107: ErrorDocument     500 /adm/errorhandler
 1108: </Location>
 1109: 
 1110: <Location /adm/grouproster>
 1111: AuthType LONCAPA
 1112: Require valid-user
 1113: PerlAuthzHandler       Apache::lonacc
 1114: SetHandler perl-script
 1115: PerlHandler Apache::grouproster
 1116: ErrorDocument     403 /adm/login
 1117: ErrorDocument     406 /adm/roles
 1118: ErrorDocument     500 /adm/errorhandler
 1119: </Location>
 1120: 
 1121: <Location /adm/whatsnew>
 1122: AuthType LONCAPA
 1123: Require valid-user
 1124: PerlAuthzHandler       Apache::lonacc
 1125: SetHandler perl-script
 1126: PerlHandler Apache::lonwhatsnew
 1127: ErrorDocument     403 /adm/login
 1128: ErrorDocument     406 /adm/roles
 1129: ErrorDocument     500 /adm/errorhandler
 1130: </Location>
 1131: 
 1132: <Location /adm/populate>
 1133: AuthType LONCAPA
 1134: Require valid-user
 1135: PerlAuthzHandler       Apache::lonacc
 1136: SetHandler perl-script
 1137: PerlHandler Apache::lonpopulate
 1138: ErrorDocument     403 /adm/login
 1139: ErrorDocument     406 /adm/roles
 1140: ErrorDocument     500 /adm/errorhandler
 1141: </Location>
 1142: 
 1143: <Location /adm/managekeys>
 1144: AuthType LONCAPA
 1145: Require valid-user
 1146: PerlAuthzHandler       Apache::lonacc
 1147: SetHandler perl-script
 1148: PerlHandler Apache::lonmanagekeys
 1149: ErrorDocument     403 /adm/login
 1150: ErrorDocument     406 /adm/roles
 1151: ErrorDocument	  500 /adm/errorhandler
 1152: </Location>
 1153: 
 1154: <Location /adm/printout>
 1155: AuthType LONCAPA
 1156: Require valid-user
 1157: PerlAuthzHandler       Apache::lonacc
 1158: SetHandler perl-script
 1159: PerlHandler Apache::lonprintout
 1160: ErrorDocument     403 /adm/login
 1161: ErrorDocument     413 /adm/overloaded.txt
 1162: ErrorDocument	  500 /adm/errorhandler
 1163: </Location>
 1164: 
 1165: <Location /adm/feedback>
 1166: AuthType LONCAPA
 1167: Require valid-user
 1168: PerlAuthzHandler       Apache::lonacc
 1169: SetHandler perl-script
 1170: PerlHandler Apache::lonfeedback
 1171: ErrorDocument     403 /adm/login
 1172: ErrorDocument	  500 /adm/errorhandler
 1173: </Location>
 1174: 
 1175: <Location /adm/coursedocs>
 1176: AuthType LONCAPA
 1177: Require valid-user
 1178: PerlAuthzHandler       Apache::lonacc
 1179: SetHandler perl-script
 1180: PerlHandler Apache::londocs
 1181: PerlCleanupHandler Apache::londocs::untiehash
 1182: PerlCleanupHandler	Apache::lonacc::cleanup
 1183: ErrorDocument     403 /adm/login
 1184: ErrorDocument	  500 /adm/errorhandler
 1185: </Location>
 1186: 
 1187: <Location /adm/supplemental>
 1188: AuthType LONCAPA
 1189: Require valid-user
 1190: PerlAuthzHandler       Apache::lonacc
 1191: SetHandler perl-script
 1192: PerlHandler Apache::londocs
 1193: PerlCleanupHandler Apache::londocs::untiehash
 1194: PerlCleanupHandler      Apache::lonacc::cleanup
 1195: ErrorDocument     403 /adm/login
 1196: ErrorDocument     500 /adm/errorhandler
 1197: </Location>
 1198: 
 1199: <Location /adm/imsimportdocs>
 1200: AuthType LONCAPA
 1201: Require valid-user
 1202: PerlAuthzHandler       Apache::lonacc
 1203: SetHandler perl-script
 1204: PerlHandler Apache::imsimportdocs
 1205: ErrorDocument     403 /adm/login
 1206: ErrorDocument     500 /adm/errorhandler
 1207: </Location>
 1208: 
 1209: <Location /adm/extresedit>
 1210: AuthType LONCAPA
 1211: Require valid-user
 1212: PerlAuthzHandler       Apache::lonacc
 1213: SetHandler perl-script
 1214: PerlHandler Apache::lonextresedit
 1215: ErrorDocument     403 /adm/login
 1216: ErrorDocument     500 /adm/errorhandler
 1217: </Location>
 1218: 
 1219: <LocationMatch "^/adm/announcements">
 1220: AuthType LONCAPA
 1221: Require valid-user
 1222: PerlAuthzHandler       Apache::lonacc
 1223: SetHandler perl-script
 1224: PerlHandler Apache::lonannounce
 1225: ErrorDocument     403 /adm/login
 1226: ErrorDocument	  500 /adm/errorhandler
 1227: </LocationMatch>
 1228: 
 1229: <Location /adm/chat>
 1230: AuthType LONCAPA
 1231: Require valid-user
 1232: PerlAuthzHandler       Apache::lonacc
 1233: SetHandler perl-script
 1234: PerlHandler Apache::lonchat
 1235: ErrorDocument	  500 /adm/errorhandler
 1236: </Location>
 1237: 
 1238: <Location /adm/chatfetch>
 1239: AuthType LONCAPA
 1240: Require valid-user
 1241: PerlAuthzHandler       Apache::lonacc
 1242: SetHandler perl-script
 1243: PerlHandler Apache::lonchatfetch
 1244: ErrorDocument     413 /adm/overloaded.txt
 1245: ErrorDocument	  500 /adm/errorhandler
 1246: </Location>
 1247: 
 1248: <Location /adm/groupchat>
 1249: AuthType LONCAPA
 1250: Require valid-user
 1251: PerlAuthzHandler       Apache::lonacc
 1252: SetHandler perl-script
 1253: PerlHandler Apache::longroupchat
 1254: ErrorDocument     403 /adm/login
 1255: ErrorDocument     500 /adm/errorhandler
 1256: </Location>
 1257: 
 1258: <Location /adm/evaluate>
 1259: AuthType LONCAPA
 1260: Require valid-user
 1261: PerlAuthzHandler       Apache::lonacc
 1262: SetHandler perl-script
 1263: PerlHandler Apache::lonevaluate
 1264: ErrorDocument     403 /adm/login
 1265: ErrorDocument	  500 /adm/errorhandler
 1266: </Location>
 1267: 
 1268: <Location /adm/preferences>
 1269: AuthType LONCAPA
 1270: Require valid-user
 1271: PerlAuthzHandler       Apache::lonacc
 1272: SetHandler perl-script
 1273: PerlHandler Apache::lonpreferences
 1274: ErrorDocument     403 /adm/login
 1275: ErrorDocument	  500 /adm/errorhandler
 1276: </Location>
 1277: 
 1278: <Location /adm/communicate>
 1279: AuthType LONCAPA
 1280: Require valid-user
 1281: PerlAuthzHandler       Apache::lonacc
 1282: SetHandler perl-script
 1283: PerlHandler Apache::loncommunicate
 1284: ErrorDocument     403 /adm/login
 1285: ErrorDocument	  500 /adm/errorhandler
 1286: </Location>
 1287: 
 1288: <Location /adm/searchcat>
 1289: AuthType LONCAPA
 1290: Require valid-user
 1291: PerlAuthzHandler       Apache::lonacc
 1292: SetHandler perl-script
 1293: PerlHandler Apache::lonsearchcat
 1294: PerlCleanupHandler Apache::lonsearchcat::cleanup
 1295: PerlCleanupHandler	Apache::lonacc::cleanup
 1296: ErrorDocument     403 /adm/login
 1297: ErrorDocument     413 /adm/overloaded.txt
 1298: ErrorDocument	  500 /adm/errorhandler
 1299: </Location>
 1300: 
 1301: <Location /adm/navmaps>
 1302: AuthType LONCAPA
 1303: Require valid-user
 1304: PerlAuthzHandler       Apache::lonacc
 1305: SetHandler perl-script
 1306: PerlHandler Apache::lonnavdisplay
 1307: ErrorDocument     403 /adm/login
 1308: ErrorDocument     406 /adm/roles
 1309: ErrorDocument	  500 /adm/errorhandler
 1310: </Location>
 1311: 
 1312: <Location /adm/quickgrades>
 1313: AuthType LONCAPA
 1314: Require valid-user
 1315: PerlAuthzHandler       Apache::lonacc
 1316: SetHandler perl-script
 1317: PerlHandler Apache::lonquickgrades
 1318: ErrorDocument     403 /adm/login
 1319: ErrorDocument     406 /adm/roles
 1320: ErrorDocument     500 /adm/errorhandler
 1321: </Location>
 1322: 
 1323: <Location /adm/groupsort>
 1324: AuthType LONCAPA
 1325: Require valid-user
 1326: PerlAuthzHandler	Apache::lonacc
 1327: SetHandler perl-script
 1328: PerlHandler Apache::groupsort
 1329: PerlCleanupHandler Apache::groupsort::cleanup
 1330: PerlCleanupHandler	Apache::lonacc::cleanup
 1331: ErrorDocument     403 /adm/login
 1332: ErrorDocument     406 /adm/roles
 1333: ErrorDocument	  500 /adm/errorhandler
 1334: </Location>
 1335: 
 1336: <Location /adm/wishlist>
 1337: AuthType LONCAPA
 1338: Require valid-user
 1339: PerlAuthzHandler       Apache::lonacc
 1340: SetHandler perl-script
 1341: PerlHandler Apache::lonwishlistdisplay
 1342: ErrorDocument     403 /adm/login
 1343: ErrorDocument     406 /adm/roles
 1344: ErrorDocument     500 /adm/errorhandler
 1345: </Location>
 1346: 
 1347: <Location /adm/setblock>
 1348: AuthType LONCAPA
 1349: Require valid-user
 1350: PerlAuthzHandler       Apache::lonacc
 1351: SetHandler             perl-script
 1352: PerlHandler            Apache::lonblockingmenu
 1353: ErrorDocument     403 /adm/login
 1354: ErrorDocument     406 /adm/roles
 1355: ErrorDocument     500 /adm/errorhandler
 1356: </Location>
 1357: 
 1358: <Location /adm/blockingstatus>
 1359: PerlAccessHandler      Apache::publiccheck
 1360: AuthType LONCAPA
 1361: Require valid-user
 1362: PerlAuthzHandler       Apache::lonacc
 1363: SetHandler             perl-script
 1364: PerlHandler            Apache::lonblockingstatus
 1365: </Location>
 1366: 
 1367: <Location /adm/accesstimes>
 1368: AuthType LONCAPA
 1369: Require valid-user
 1370: PerlAuthzHandler       Apache::lonacc
 1371: SetHandler             perl-script
 1372: PerlHandler            Apache::lonaccesstimes
 1373: ErrorDocument     403 /adm/login
 1374: ErrorDocument     406 /adm/roles
 1375: ErrorDocument     500 /adm/errorhandler
 1376: </Location>
 1377: 
 1378: <Location /adm/errorhandler>
 1379: SetHandler perl-script
 1380: PerlHandler Apache::lonerrorhandler
 1381: </Location>
 1382: 
 1383: <LocationMatch "^/adm/help/.*\.hlp$">
 1384: AuthType LONCAPA
 1385: Require valid-user
 1386: PerlAccessHandler      Apache::publiccheck
 1387: PerlAuthzHandler	Apache::lonacc
 1388: SetHandler perl-script
 1389: PerlHandler Apache::lonhelp
 1390: ErrorDocument	  500 /adm/errorhandler
 1391: </LocationMatch>
 1392: 
 1393: <LocationMatch "^/adm/helpmenu">
 1394: AuthType LONCAPA
 1395: Require valid-user
 1396: PerlAuthzHandler       Apache::lonacc
 1397: SetHandler perl-script
 1398: PerlHandler Apache::lonhelpmenu
 1399: ErrorDocument	  500 /adm/errorhandler
 1400: </LocationMatch>
 1401: 
 1402: <LocationMatch "^/adm/support">
 1403: AuthType LONCAPA
 1404: Require valid-user
 1405: PerlAuthzHandler       Apache::lonacc
 1406: SetHandler perl-script
 1407: PerlHandler Apache::lonsupportreq
 1408: ErrorDocument	  500 /adm/errorhandler
 1409: </LocationMatch>
 1410: 
 1411: <LocationMatch "^/adm/helpdesk">
 1412: SetHandler perl-script
 1413: PerlHandler Apache::lonsupportreq
 1414: ErrorDocument	  500 /adm/errorhandler
 1415: </LocationMatch>
 1416: 
 1417: <LocationMatch "^/adm/css/.*\.css$">
 1418: SetHandler perl-script
 1419: PerlHandler Apache::loncss
 1420: ErrorDocument	  500 /adm/errorhandler
 1421: </LocationMatch>
 1422: 
 1423: <LocationMatch "^/adm/coursecatalog">
 1424: SetHandler perl-script
 1425: PerlHandler Apache::coursecatalog
 1426: ErrorDocument	  500 /adm/errorhandler
 1427: </LocationMatch>
 1428: 
 1429: <LocationMatch "^/adm/resetpw">
 1430: SetHandler perl-script
 1431: PerlHandler Apache::resetpw
 1432: ErrorDocument     500 /adm/errorhandler
 1433: </LocationMatch>
 1434: 
 1435: <LocationMatch "^/adm/selfenroll">
 1436: SetHandler perl-script
 1437: PerlHandler Apache::selfenroll
 1438: ErrorDocument     500 /adm/errorhandler
 1439: </LocationMatch>
 1440: 
 1441: <LocationMatch "^/adm/createaccount">
 1442: SetHandler perl-script
 1443: PerlHandler Apache::createaccount
 1444: ErrorDocument     500 /adm/errorhandler
 1445: </LocationMatch>
 1446: 
 1447: <LocationMatch "^/adm/dns">
 1448: SetHandler perl-script
 1449: PerlHandler Apache::londns
 1450: ErrorDocument     500 /adm/errorhandler
 1451: </LocationMatch>
 1452: 
 1453: <LocationMatch "^/ajax/spellcheck">
 1454: SetHandler perl-script
 1455: PerlHandler Apache::spellcheck
 1456: </LocationMatch>
 1457: 
 1458: 
 1459: 
 1460: # ------------------------------------------------- Backdoor Adm Tests/Programs
 1461: 
 1462: <Location /adm/test>
 1463: PerlAccessHandler Apache::lonstatusacc
 1464: SetHandler perl-script
 1465: PerlHandler Apache::lontest
 1466: </Location>
 1467: 
 1468: # ------------------------------------------------------- Shutting down a child
 1469: 
 1470: PerlChildExitHandler Apache::lonacc::goodbye
 1471: 
 1472: #
 1473: # LON-CAPA Section (extensions to access.conf permission configuration)
 1474: #
 1475: # =========================================================== Directory Options
 1476: 
 1477: # Start out with "no"
 1478: 
 1479: <Directory />
 1480: Options None
 1481: AllowOverride None
 1482: <IfModule mod_authz_core.c>
 1483:   Require all denied
 1484: </IfModule>
 1485: <IfModule !mod_authz_core.c>
 1486:   order deny,allow
 1487:   deny from all
 1488: </IfModule>
 1489: </Directory>
 1490: 
 1491: # Allow uploaded files to be served
 1492: 
 1493: <Directory "/home/httpd/lonUsers">
 1494: Options FollowSymLinks
 1495: AllowOverride None
 1496: <IfModule mod_authz_core.c>
 1497:   Require all granted
 1498: </IfModule>
 1499: <IfModule !mod_authz_core.c>
 1500:   order allow,deny
 1501:   allow from all
 1502: </IfModule>
 1503: </Directory>
 1504:  
 1505: # Yes to symbolic links and server-side includes
 1506: 
 1507: <Directory /home/httpd/html>
 1508: Options FollowSymLinks
 1509: AllowOverride None
 1510: <IfModule mod_authz_core.c>
 1511:   Require all granted
 1512: </IfModule>
 1513: <IfModule !mod_authz_core.c>
 1514:   order allow,deny
 1515:   allow from all
 1516: </IfModule>
 1517: </Directory>
 1518: 
 1519: # If it is in cgi-bin, then it can be executed as a CGI script.
 1520: 
 1521: <Directory /home/httpd/cgi-bin>
 1522: AllowOverride None
 1523: Options ExecCGI FollowSymLinks
 1524: <IfModule mod_authz_core.c>
 1525:   Require all granted
 1526: </IfModule>
 1527: <IfModule !mod_authz_core.c>
 1528:   order allow,deny
 1529:   allow from all
 1530: </IfModule>
 1531: </Directory>
 1532: 
 1533: # Allow serving of files in prtspool
 1534: 
 1535: <Directory "/home/httpd/prtspool/">
 1536: Options FollowSymLinks
 1537: AllowOverride None
 1538: <IfModule mod_authz_core.c>
 1539:   Require all granted
 1540: </IfModule>
 1541: <IfModule !mod_authz_core.c>
 1542:   order allow,deny
 1543:   allow from all
 1544: </IfModule>
 1545: </Directory>
 1546: 
 1547: # Allow serving of files in zipspool
 1548: 
 1549: <Directory "/home/httpd/zipspool/">
 1550: Options FollowSymLinks
 1551: AllowOverride None
 1552: <IfModule mod_authz_core.c>
 1553:   Require all granted
 1554: </IfModule>
 1555: <IfModule !mod_authz_core.c>
 1556:   order allow,deny
 1557:   allow from all
 1558: </IfModule>
 1559: </Directory>
 1560: 
 1561: # Allow serving of files in captchaspool
 1562: 
 1563: <Directory "/home/httpd/captchaspool/">
 1564: Options FollowSymLinks
 1565: AllowOverride None
 1566: <IfModule mod_authz_core.c>
 1567:   Require all granted
 1568: </IfModule>
 1569: <IfModule !mod_authz_core.c>
 1570:   order allow,deny
 1571:   allow from all
 1572: </IfModule>
 1573: </Directory>
 1574: 
 1575: <DirectoryMatch "^/home/httpd/html/priv/.+/">
 1576:    DirectoryIndex disabled
 1577: </DirectoryMatch>
 1578: 
 1579: <DirectoryMatch "^/home/httpd/html/res/.+/">
 1580:    DirectoryIndex disabled
 1581: </DirectoryMatch>
 1582: 
 1583: # ============================================================= Access Handlers
 1584: 
 1585: # ------------------------------------------------- Allow server-status reports
 1586: <Location /server-status>
 1587: PerlAccessHandler Apache::lonstatusacc
 1588: SetHandler server-status
 1589: </Location>
 1590: 
 1591: # ------------------------ Allow LON-CAPA "low-level" connection status reports
 1592: <LocationMatch "^/+lon-status/.*">
 1593: PerlAccessHandler Apache::lonstatusacc
 1594: ErrorDocument     406 /adm/roles
 1595: ErrorDocument     500 /adm/errorhandler
 1596: </LocationMatch>
 1597: 
 1598: # ------------------- Allow access to local system documentation from localhost
 1599: Alias /doc /usr/doc
 1600: <Directory /usr/doc>
 1601: Options Indexes FollowSymLinks
 1602: <IfModule mod_authz_host.c>
 1603:   Require local
 1604: </IfModule>
 1605: <IfModule !mod_authz_host.c>
 1606:   order deny,allow
 1607:   deny from all
 1608:   allow from localhost
 1609: </IfModule>
 1610: </Directory>
 1611: 
 1612: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
 1613: # ====================================== Internal Settings / Perl Configuration
 1614: 
 1615: PerlSetVar	 lonVersion   '<!-- VERSION -->'
 1616: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
 1617: PerlSetVar       lonBalanceDir /home/httpd/balanceIDs
 1618: PerlSetVar       lonDAVsessDir /home/httpd/webdav/sessionIDs
 1619: PerlSetVar       lonTabDir    /home/httpd/lonTabs
 1620: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
 1621: PerlSetVar       lonIconsURL  /adm/lonIcons
 1622: PerlSetVar       londPort     5663
 1623: PerlSetVar       lonSysEMail  techsupport@loncapa.org
 1624: PerlSetVar       lonDaemons   /home/httpd/perl
 1625: PerlSetVar       lonLib       /home/httpd/lib
 1626: PerlSetVar       lonSockDir   /home/httpd/sockets
 1627: PerlSetVar       lonSockCreate   /home/httpd/sockets/common
 1628: PerlSetVar       lonDocRoot   /home/httpd/html
 1629: PerlSetVar       lonPrtDir    /home/httpd/prtspool
 1630: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
 1631: PerlSetVar       lonZipDir    /home/httpd/zipspool
 1632: PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool
 1633: PerlSetVar       lonCaptchaDb     /home/httpd/captchadb 
 1634: PerlSetVar       lonFontsDir     /home/httpd/html/adm/fonts
 1635: # & separated list of % separated fields in order of
 1636: # - internal name to call it, 
 1637: # - regexp that it should match (done case-insensitively)
 1638: # - regexp that is should not match (done case-insensitively)
 1639: # - regexp that will pull out the version number into $1
 1640: # - a number that describes the minimum version that has mathml support
 1641: # - a number that describes the minimum number version that has unicode support
 1642: 
 1643: PerlSetVar       lonBrowsDet  explorer%msie%netscape%msie\s(\d+\.\d+)\;%9999%5&mozilla%mozilla\/[5-9]%msie%mozilla\/(\d+\.\d+)\s%9999%1&netscape%netscape%msie%netscape\/(\d+\.\d+)%9999%7&netscape%netscape\/[7-9]%shouldnotmatch%netscape\/(\d+\.\d+)%9999%7&amaya%amaya%mozilla%V(\d+\.\d+)\s%1%1&safari%safari%msie%safari\/([\d\.]+)%9999%84&chrome%chrome%chromeframe%\s+chrome\/(\d+\.\d+)%9999%1&explorer%\s+rv\:\d+\.\d+%firefox%\s+rv\:(\d+\.\d+)%9999%5&opera%\sOPR\/\d+\.\d+%shouldnotmatch%\sOPR\/(\d+\.\d+)%9999%6&opera%^Opera\/9.80\s.+Version\/\d+\.\d+$%shouldnotmatch%Version\/(\d+\.\d+)$%9999%6&opera%^Opera\/\d+\.\d+\s%Version\/\d+\.\d+$%^Opera\/(\d+\.\d+)\s%9999%6
 1644: 
 1645: PerlSetVar       lonTextBrowsers windows\s+ce:lynx
 1646: PerlSetVar       lonScansDir  /home/httpd/scantron
 1647: PerlSetVar       lonScriptTimeout 10
 1648: PerlSetVar	 BugzillaHost	https://bugs.loncapa.org/
 1649: PerlSetVar	 FAQHost	http://help.lon-capa.org/
 1650: # -----------------------------------------------------------------------------
 1651: # NOTE: lonSqlAccess key is the password for the MySQL user
 1652: # www@localhost.  This value must always be "localhostkey".
 1653: # The only security risk occurs when somebody logs in as 'www' on your system
 1654: # (in which case you have much bigger problems than whether or not they
 1655: # can access the non-authoritative loncapa database on your machine).
 1656: 
 1657: PerlSetVar       lonSqlAccess   localhostkey
 1658: 
 1659: #----------------------------------------------------------------------------
 1660: #
 1661: #   Parameters used by secure lond/lonc
 1662: 
 1663: #
 1664: #   Secure lond/lonc require ssl certificate and private
 1665: #   key files to function correctly.  The certificate
 1666: #   files need not be terribly secure, but the private key files
 1667: #   should be set up so that only www (the lonc/lond effective user)
 1668: #   can read them.
 1669: # 
 1670: #   The definition below is the full path to the directory that
 1671: #   contains the certificate and key files:
 1672: 
 1673: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
 1674: 
 1675: #
 1676: #  Secure lond/lonc require two certificates and a private host key.
 1677: #  The certificates required are that of the lonCAPA certificate authority
 1678: #  and the certificate that authority issued to this host.
 1679: #  lonnetCertificateAuthority is the name of the file that contains the
 1680: #                            lonCAPA certificate authority's certificate.
 1681: #  lonnetCertificate is the name of the file that contains the certificate
 1682: #                    issued to the host by the certificate authority.
 1683: #  Both of these variables are names of files assumed to be in 
 1684: #  lonCertificateDirectory:
 1685: 
 1686: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
 1687: PerlSetVar lonnetCertificate          lonhostcert.pem
 1688: 
 1689: #
 1690: #  To generate the request for a certificate, and to negotiate the
 1691: #  initial ssl connection, the host requires a private key.  This key
 1692: #  is created at lonCAPA install time.  Did we mention above that it
 1693: #  should be set so that only www can read it?  The variale below
 1694: #  is the name of the file relative to lonnetCertificateDirectory
 1695: #  that has the host's private key.  Did we remember to tell you to
 1696: #  keep the permissions on that file set to rw-------  (0600)?
 1697: #  
 1698: 
 1699: PerlSetVar lonnetPrivateKey         lonKey.pem
 1700: 
 1701: # Did we mention that the file described above must have
 1702: # permissions really locked down so that it can't be stolen?
 1703: 
 1704: #-------------------------------------------------------------------------
 1705: 
 1706: #   Parameters that define where all the ssl stuff is that's needed
 1707: #   to generate certificate requests and, on a system that's a CA
 1708: #   the certificate authority.
 1709: #    
 1710: #    SSLProgram    -> Path to the openssl command
 1711: #    SSLDirectory  -> Directory containing ssl configuration files etc.
 1712: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
 1713: #                     Authority.
 1714: #    SSLCAFile     -> Full path to the Certificate authority file 
 1715: #                    (on the cert manager system).
 1716: #    SSLEmail      -> E-mail address of loncapa certificate manager.
 1717: #    The following are good for the loncapa redhat installs and
 1718: #    the loncapa certificate authority system:
 1719: #
 1720: PerlSetVar SSLProgram	/usr/bin/openssl
 1721: PerlSetVar SSLDirectory /usr/share/ssl
 1722: PerlSetVar SSLCAConfig  loncapaca
 1723: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1724: PerlSetVar SSLEmail     certificate@lon-capa.org
 1725: 
 1726: #-------------------------------------------------------------------------
 1727: 
 1728: 
 1729: # ====================================== Include support for SSL rewrites
 1730: 
 1731: Include conf/loncapa_rewrite.conf
 1732: 
 1733: 
 1734: # ====================================== Include machine-specific configuration
 1735: 
 1736: Include conf/loncapa.conf
 1737: 
 1738: # ================================================= Include local configuration
 1739: 
 1740: Include conf/loncapa_apache_local*.conf
 1741: 
 1742: # ================================================== Initiate mod_perl starting
 1743: 
 1744: PerlRequire      conf/startup.pl
 1745: <IfDefine !MODPERL2>
 1746: PerlFreshRestart On
 1747: </IfDefine>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>