File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.215.2.22.6.1: download - view: text, annotated - select for diffs
Tue Sep 15 13:43:31 2020 UTC (3 years, 8 months ago) by raeburn
Branches: version_2_11_2_purdue
Diff to branchpoint 1.215.2.22: preferred, unified
- For 2.11.2 (modified)
  Include changes in 1.271, 1.272, 1.273, 1.274

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

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