File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.243: download - view: text, annotated - select for diffs
Fri Mar 18 18:21:08 2016 UTC (8 years, 1 month ago) by damieng
Branches: MAIN
CVS tags: HEAD
added support for editing course coordinator web pages with Daxe

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

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