File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.215.2.30.2.1: download - view: text, annotated - select for diffs
Thu Dec 30 06:50:12 2021 UTC (2 years, 4 months ago) by raeburn
Branches: version_2_11_4_msu
Diff to branchpoint 1.215.2.30: preferred, unified
- For 2.11.4 (modified)
  Include changes in 1.242, 1.255, 1.258 (part), 1.262, 1.266, 1.267,
  1.269 (part), 1.275

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

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