File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.282: download - view: text, annotated - select for diffs
Mon Aug 28 18:58:45 2023 UTC (9 months, 1 week ago) by raeburn
Branches: MAIN
CVS tags: HEAD
- Support use of pop-up browser to insert image files into HTML files
  uploaded to Main Content or Supplemental Content areas of a course.

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

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