File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.281: download - view: text, annotated - select for diffs
Fri Jul 7 03:52:39 2023 UTC (10 months ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Bug 6754 LON-CAPA as LTI Consumer
  Support for access control using slots for both "gradable" and "non-gradable"
  external tools.

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

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