File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.215.2.30.2.8: download - view: text, annotated - select for diffs
Wed Feb 28 19:41:54 2024 UTC (2 months, 3 weeks ago) by raeburn
Branches: version_2_11_4_msu
Diff to branchpoint 1.215.2.30: preferred, unified
- For 2.11.4 (modified)
  Include changes in 1.236, 1.237, 1.238, 1.239, 1.240, 1.243, 1.252, 1.253,
  1.282, 1.283

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

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