File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.181.2.4: download - view: text, annotated - select for diffs
Tue May 11 23:41:04 2010 UTC (14 years, 1 month ago) by raeburn
Branches: version_2_8_X
CVS tags: version_2_8_2
- Backport 1.191, 1.192.

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.181.2.4 2010/05/11 23:41:04 raeburn Exp $
    5: ##
    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: LoadModule perl_module       modules/libperl.so
   22: <IfDefine !MODPERL2>
   23: AddModule mod_perl.c
   24: </IfDefine>
   25: 
   26: <IfDefine MODPERL2>
   27: PerlSetVar	MODPERL2	1
   28: </IfDefine>
   29: # =============================================================== Miscellaneous
   30: 
   31: ServerAdmin korte@lite.msu.edu
   32: ExtendedStatus On
   33: #
   34: # LON-CAPA Section (extensions to srm.conf name space servicing)
   35: #
   36: # ===================================================================== Aliases
   37: 
   38: Alias /zipspool/ /home/httpd/zipspool/
   39: Alias /prtspool/ /home/httpd/prtspool/
   40: Alias /captchaspool/ /home/httpd/captchaspool/
   41: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
   42: 
   43: # ================================================================= Directories
   44: 
   45: # ------------------------------------------------------------- Access Handlers
   46: 
   47: PerlTransHandler	Apache::lontrans
   48: PerlCleanupHandler	Apache::lonacc::cleanup
   49: 
   50: PerlAuthenHandler Apache::checkauthen
   51: PerlSetVar lonOtherAuthen no
   52: 
   53: #PerlWarn On
   54: <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
   55: PerlAuthenHandler       'sub { return OK }'
   56: </LocationMatch>
   57: 
   58: # Send proper expires header to avoid unnecessary HTTP request for static content
   59: <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/adm/jsMath|/res/adm/pages|/fckeditor)">
   60:         ExpiresActive On
   61:         ExpiresDefault "access plus 12 hours"
   62: </LocationMatch>
   63: 
   64: <LocationMatch "^/+res.*">
   65: 
   66: AuthType LONCAPA
   67: Require valid-user
   68: 
   69: PerlAccessHandler      Apache::publiccheck
   70: PerlAuthzHandler       Apache::lonacc
   71: PerlHeaderParserHandler Apache::lonrep
   72: ErrorDocument     403 /adm/login
   73: ErrorDocument     404 /adm/notfound.html
   74: ErrorDocument     406 /adm/roles
   75: ErrorDocument	  500 /adm/errorhandler
   76: </LocationMatch>
   77: 
   78: 
   79: <LocationMatch "/.*">
   80: </LocationMatch>
   81: 
   82: 
   83: <LocationMatch "^/+enc.*">
   84: SetHandler perl-script
   85: PerlHandler       Apache::lonencurl
   86: ErrorDocument     403 /adm/login
   87: ErrorDocument     404 /adm/notfound.html
   88: ErrorDocument     406 /adm/roles
   89: ErrorDocument	  500 /adm/errorhandler
   90: </LocationMatch>
   91: 
   92: <Location /adm/portfolio>
   93: AuthType LONCAPA
   94: Require valid-user
   95: PerlAuthzHandler Apache::lonacc
   96: SetHandler perl-script
   97: PerlHandler Apache::portfolio
   98: </Location>
   99: 
  100: <Location /adm/coursegrp_portfolio>
  101: AuthType LONCAPA
  102: Require valid-user
  103: PerlAuthzHandler Apache::lonacc
  104: SetHandler perl-script
  105: PerlHandler Apache::portfolio
  106: </Location>
  107: 
  108: <LocationMatch "^/+userfiles.*">
  109: PerlAccessHandler       Apache::lontokacc
  110: PerlCleanupHandler	Apache::lontokacc::removefile
  111: PerlCleanupHandler	Apache::lonacc::cleanup
  112: </LocationMatch>
  113: 
  114: <LocationMatch "^/+uploaded.*">
  115: AuthType LONCAPA
  116: Require valid-user
  117: PerlAuthzHandler	Apache::lonacc
  118: PerlHandler 		Apache::londatecheck
  119: PerlHandler  		Apache::lonipcheck
  120: PerlHeaderParserHandler Apache::lonuploadrep
  121: ErrorDocument     403 /adm/login
  122: ErrorDocument     404 /adm/notfound.html
  123: ErrorDocument     406 /adm/roles
  124: ErrorDocument	  500 /adm/errorhandler
  125: </LocationMatch>
  126: 
  127: <LocationMatch "^/+editupload.*">
  128: AuthType LONCAPA
  129: Require valid-user
  130: PerlAuthzHandler	Apache::lonacc
  131: ErrorDocument     403 /adm/login
  132: ErrorDocument     406 /adm/roles
  133: ErrorDocument	  500 /adm/errorhandler
  134: </LocationMatch>
  135: 
  136: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
  137: PerlAuthenHandler	Apache::lonuploadedacc
  138: PerlAuthzHandler	Apache::lonuploadedacc::skip_phase
  139: PerlAccessHandler	Apache::lonuploadedacc::skip_phase
  140: </LocationMatch>
  141: 
  142: <LocationMatch "^/+uploaded/.*/.*/portfolio/.*">
  143: PerlAccessHandler      Apache::publiccheck
  144: AuthType LONCAPA
  145: Require valid-user
  146: PerlAuthzHandler       Apache::lonacc
  147: </LocationMatch>
  148: 
  149: <LocationMatch "^/+uploaded/.*/.*/groups/.*/portfolio/.*">
  150: PerlAccessHandler      Apache::publiccheck
  151: AuthType LONCAPA
  152: Require valid-user
  153: PerlAuthzHandler       Apache::lonacc
  154: </LocationMatch>
  155: 
  156: <LocationMatch "^/+uploaded/.*\.page$">
  157: SetHandler perl-script
  158: PerlHandler Apache::lonpage
  159: </LocationMatch>
  160: 
  161: <LocationMatch "^/+uploaded/.*\.sequence$">
  162: SetHandler perl-script
  163: PerlHandler Apache::lonsequence
  164: </LocationMatch>
  165: 
  166: <LocationMatch "^/+public/.*/syllabus$">
  167: PerlAccessHandler      Apache::publiccheck
  168: AuthType LONCAPA
  169: Require valid-user
  170: PerlAuthzHandler	Apache::lonacc
  171: SetHandler              perl-script
  172: PerlHandler             Apache::lonsyllabus
  173: ErrorDocument     404 /adm/notfound.html
  174: ErrorDocument	  500 /adm/errorhandler
  175: </LocationMatch>
  176: 
  177: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
  178: PerlAccessHandler      Apache::publiccheck
  179: AuthType LONCAPA
  180: Require valid-user
  181: PerlAuthzHandler	Apache::lonacc
  182: SetHandler              perl-script
  183: PerlHandler             Apache::lonrss
  184: ErrorDocument     404 /adm/notfound.html
  185: ErrorDocument	  500 /adm/errorhandler
  186: </LocationMatch>
  187: 
  188: <LocationMatch "^/adm/.*/aboutme$">
  189: AuthType LONCAPA
  190: Require valid-user
  191: PerlAuthzHandler	Apache::lonacc
  192: SetHandler              perl-script
  193: PerlHandler             Apache::lonaboutme
  194: ErrorDocument     404 /adm/notfound.html
  195: ErrorDocument     406 /adm/notinit.html
  196: ErrorDocument	  500 /adm/errorhandler
  197: </LocationMatch>
  198: 
  199: <LocationMatch "^/adm/.*/aboutme/portfolio$">
  200: PerlAccessHandler       Apache::publiccheck
  201: AuthType LONCAPA
  202: Require valid-user
  203: PerlAuthzHandler	Apache::lonacc
  204: SetHandler              perl-script
  205: PerlHandler             Apache::lonaboutme
  206: ErrorDocument     404 /adm/notfound.html
  207: ErrorDocument     406 /adm/notinit.html
  208: ErrorDocument	  500 /adm/errorhandler
  209: </LocationMatch>
  210: 
  211: <LocationMatch "^/adm/.*/smppg$">
  212: AuthType LONCAPA
  213: Require valid-user
  214: PerlAuthzHandler	Apache::lonacc
  215: SetHandler              perl-script
  216: PerlHandler             Apache::londatecheck
  217: PerlHandler		Apache::lonipcheck
  218: PerlHandler             Apache::lonsimplepage
  219: ErrorDocument     404 /adm/notfound.html
  220: ErrorDocument     406 /adm/notinit.html
  221: ErrorDocument	  500 /adm/errorhandler
  222: </LocationMatch>
  223: 
  224: <LocationMatch "^/adm/.*/bulletinboard$">
  225: AuthType LONCAPA
  226: Require valid-user
  227: PerlAuthzHandler	Apache::lonacc
  228: SetHandler              perl-script
  229: PerlHandler             Apache::londatecheck
  230: PerlHandler		Apache::lonipcheck
  231: PerlHandler             Apache::lonbulletin
  232: ErrorDocument     404 /adm/notfound.html
  233: ErrorDocument     406 /adm/notinit.html
  234: ErrorDocument	  500 /adm/errorhandler
  235: </LocationMatch>
  236: 
  237: <LocationMatch "\.problem/smpedit$">
  238: AuthType LONCAPA
  239: Require valid-user
  240: PerlAuthzHandler	Apache::lonacc
  241: SetHandler              perl-script
  242: PerlHandler             Apache::lonsimpleproblemedit
  243: ErrorDocument     404 /adm/notfound.html
  244: ErrorDocument     406 /adm/notinit.html
  245: ErrorDocument	  500 /adm/errorhandler
  246: </LocationMatch>
  247: 
  248: <LocationMatch "^/+priv.*">
  249: AuthType LONCAPA
  250: Require valid-user
  251: PerlAuthzHandler Apache::loncacc
  252: SetHandler        perl-script
  253: PerlHandler       Apache::lonconstruct
  254: ErrorDocument     403 /adm/login
  255: ErrorDocument     404 /adm/notfound.html
  256: ErrorDocument     406 /adm/unauthorized
  257: ErrorDocument	  500 /adm/errorhandler
  258: </LocationMatch>
  259: 
  260: <LocationMatch "^/+raw.*">
  261: PerlAccessHandler Apache::lonracc
  262: </LocationMatch>
  263: 
  264: <LocationMatch "^/+\~.*">
  265: AuthType LONCAPA
  266: Require valid-user
  267: PerlAuthzHandler Apache::loncacc
  268: ErrorDocument     403 /adm/login
  269: ErrorDocument     404 /adm/notfound.html
  270: ErrorDocument     406 /adm/unauthorized
  271: ErrorDocument	  500 /adm/errorhandler
  272: </LocationMatch>
  273: 
  274: <LocationMatch "^/adm/helper/.*\.helper$">
  275: AuthType LONCAPA
  276: Require valid-user
  277: PerlAuthzHandler  Apache::lonacc
  278: SetHandler        perl-script
  279: PerlHandler       Apache::lonhelper
  280: ErrorDocument     403 /adm/login
  281: ErrorDocument     404 /adm/notfound.html
  282: ErrorDocument     406 /adm/unauthorized
  283: ErrorDocument     500 /adm/errorhandler
  284: </LocationMatch>
  285: 
  286: <LocationMatch "/prtspool">
  287: AuthType LONCAPA
  288: Require valid-user
  289: PerlAuthzHandler Apache::lonacc
  290: ErrorDocument     403 /adm/login
  291: ErrorDocument     404 /adm/notfound.html
  292: ErrorDocument     406 /adm/roles
  293: ErrorDocument     413 /adm/overloaded.txt
  294: ErrorDocument	  500 /adm/errorhandler
  295: </LocationMatch>
  296: 
  297: <LocationMatch "/zipspool">
  298: AuthType LONCAPA
  299: Require valid-user
  300: PerlAuthzHandler Apache::lonacc
  301: ErrorDocument     403 /adm/login
  302: ErrorDocument     404 /adm/notfound.html
  303: ErrorDocument     406 /adm/roles
  304: ErrorDocument     413 /adm/overloaded.txt
  305: ErrorDocument	  500 /adm/errorhandler
  306: </LocationMatch>
  307: # ------------------------------------------------------------------------- RAT
  308: 
  309: <LocationMatch "^/\~.*\.sequence$">
  310: SetHandler perl-script
  311: PerlHandler Apache::lonratedt
  312: </LocationMatch>
  313: 
  314: <LocationMatch "^/\~.*\.page$">
  315: SetHandler perl-script
  316: PerlHandler Apache::lonratedt
  317: </LocationMatch>
  318: 
  319: <LocationMatch "^/\~.*\/ratserver$">
  320: SetHandler perl-script
  321: PerlHandler Apache::lonratsrv
  322: </LocationMatch>
  323: 
  324: <LocationMatch "^/\~.*\/adveditmenu$">
  325: SetHandler perl-script
  326: PerlHandler Apache::lonratmenu
  327: </LocationMatch>
  328: 
  329: <Location /adm/ratparms>
  330: AuthType LONCAPA
  331: Require valid-user
  332: PerlAuthzHandler       Apache::lonacc
  333: SetHandler perl-script
  334: PerlHandler Apache::lonratparms
  335: ErrorDocument     403 /adm/login
  336: ErrorDocument	  500 /adm/errorhandler
  337: </Location>
  338: 
  339: # --------------------------------------------- Resource Space Content Handlers
  340: 
  341: <LocationMatch "^/+res.*/$">
  342: SetHandler perl-script
  343: PerlHandler Apache::lonindexer
  344: PerlCleanupHandler Apache::lonindexer::cleanup
  345: PerlCleanupHandler	Apache::lonacc::cleanup
  346: </LocationMatch>
  347: 
  348: <LocationMatch "^/+(res|\~).*\.tex$">
  349: SetHandler perl-script
  350: PerlHandler Apache::lontex
  351: </LocationMatch>
  352: 
  353: <LocationMatch "^/+res/.*\.page$">
  354: SetHandler perl-script
  355: PerlHandler Apache::lonpage
  356: </LocationMatch>
  357: 
  358: <LocationMatch "^/+res/.*\.sequence$">
  359: SetHandler perl-script
  360: PerlHandler Apache::lonsequence
  361: </LocationMatch>
  362: 
  363: <LocationMatch "^/+(res|\~|public|uploaded|editupload|adm).*\.meta$">
  364: PerlAccessHandler      Apache::publiccheck
  365: SetHandler perl-script
  366: PerlHandler Apache::lonmeta
  367: ErrorDocument     413 /adm/overloaded.txt
  368: </LocationMatch>
  369: 
  370: <LocationMatch "^/adm/bombs/">
  371: AuthType LONCAPA
  372: Require valid-user
  373: SetHandler perl-script
  374: PerlAuthzHandler Apache::lonacc
  375: PerlHandler Apache::lonmeta
  376: </LocationMatch>
  377: 
  378: 
  379: 
  380: <LocationMatch "^/+(res|\~).*\.rights$">
  381: SetHandler perl-script
  382: PerlHandler Apache::lonrights
  383: </LocationMatch>
  384: 
  385: <LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$">
  386: SetHandler perl-script
  387: PerlHandler Apache::londatecheck
  388: PerlHandler Apache::lonipcheck
  389: PerlHandler Apache::lonxml
  390: </LocationMatch>
  391: 
  392: <LocationMatch "^/+(res|\~).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
  393: SetHandler perl-script
  394: PerlHandler Apache::lonhomework
  395: </LocationMatch>
  396: 
  397: <LocationMatch "^/adm/wrapper/">
  398: AuthType LONCAPA
  399: Require valid-user
  400: PerlAuthzHandler       Apache::lonacc
  401: PerlHandler Apache::londatecheck
  402: PerlHandler Apache::lonipcheck
  403: SetHandler perl-script
  404: PerlHandler Apache::lonwrapper
  405: ErrorDocument     403 /adm/login
  406: ErrorDocument	  500 /adm/errorhandler
  407: </LocationMatch>
  408: 
  409: <LocationMatch "^/adm/source">
  410: AuthType LONCAPA
  411: Require valid-user
  412: PerlAuthzHandler       Apache::lonacc
  413: SetHandler perl-script
  414: PerlHandler Apache::lonsource
  415: ErrorDocument     403 /adm/login
  416: ErrorDocument     406 /adm/roles
  417: ErrorDocument	  500 /adm/errorhandler
  418: </LocationMatch>
  419: 
  420: 
  421: <LocationMatch "^/adm/localize/">
  422: AuthType LONCAPA
  423: Require valid-user
  424: PerlAuthzHandler       Apache::lonacc
  425: SetHandler perl-script
  426: PerlHandler Apache::lonlocalize
  427: ErrorDocument     403 /adm/login
  428: ErrorDocument	  500 /adm/errorhandler
  429: </LocationMatch>
  430: 
  431: # -------------------------------------------------------------- Admin Programs
  432: 
  433: <Location /adm/randomlabel.png>
  434: AuthType LONCAPA
  435: Require valid-user
  436: PerlAuthzHandler       Apache::lonacc
  437: SetHandler perl-script
  438: PerlHandler Apache::randomlylabel
  439: ErrorDocument     403 /adm/login
  440: ErrorDocument	  500 /adm/errorhandler
  441: </Location>
  442: 
  443: <Location /adm/imagechoice>
  444: AuthType LONCAPA
  445: Require valid-user
  446: PerlAuthzHandler       Apache::lonacc
  447: SetHandler perl-script
  448: PerlHandler Apache::imagechoice
  449: ErrorDocument     403 /adm/login
  450: ErrorDocument	  500 /adm/errorhandler
  451: </Location>
  452: 
  453: <Location /adm/statistics>
  454: AuthType LONCAPA
  455: Require valid-user
  456: PerlAuthzHandler       Apache::lonacc
  457: SetHandler perl-script
  458: PerlHandler Apache::lonstatistics
  459: ErrorDocument     403 /adm/login
  460: ErrorDocument     413 /adm/overloaded.txt
  461: ErrorDocument	  500 /adm/errorhandler
  462: </Location>
  463: 
  464: <Location /adm/trackstudent>
  465: AuthType LONCAPA
  466: Require valid-user
  467: PerlAuthzHandler       Apache::lonacc
  468: SetHandler perl-script
  469: PerlHandler Apache::lontrackstudent
  470: ErrorDocument     403 /adm/login
  471: ErrorDocument     413 /adm/overloaded.txt
  472: ErrorDocument	  500 /adm/errorhandler
  473: </Location>
  474: 
  475: <Location /adm/roles>
  476: AuthType LONCAPA
  477: Require valid-user
  478: PerlAuthzHandler       Apache::lonacc
  479: SetHandler perl-script
  480: PerlHandler Apache::lonroles
  481: ErrorDocument     403 /adm/login
  482: ErrorDocument     409 /adm/preferences?action=lockwarning
  483: ErrorDocument	  500 /adm/errorhandler
  484: </Location>
  485: 
  486: <Location /adm/menu>
  487: AuthType LONCAPA
  488: Require valid-user
  489: PerlAuthzHandler       Apache::lonacc
  490: SetHandler perl-script
  491: PerlHandler Apache::lonmainmenu
  492: ErrorDocument     403 /adm/login
  493: ErrorDocument	  500 /adm/errorhandler
  494: </Location>
  495: 
  496: <Location /adm/remote>
  497: AuthType LONCAPA
  498: Require valid-user
  499: PerlAuthzHandler       Apache::lonacc
  500: SetHandler perl-script
  501: PerlHandler Apache::lonremote
  502: ErrorDocument     403 /adm/login
  503: ErrorDocument	  500 /adm/errorhandler
  504: </Location>
  505: 
  506: <Location /adm/pickauthor>
  507: AuthType LONCAPA
  508: Require valid-user
  509: PerlAuthzHandler       Apache::lonacc
  510: SetHandler perl-script
  511: PerlHandler Apache::lonpickauthor
  512: ErrorDocument     403 /adm/login
  513: ErrorDocument     500 /adm/errorhandler
  514: </Location>
  515: 
  516: <Location /adm/pickstudent>
  517: AuthType LONCAPA
  518: Require valid-user
  519: PerlAuthzHandler       Apache::lonacc
  520: SetHandler perl-script
  521: PerlHandler Apache::lonpickstudent
  522: ErrorDocument     403 /adm/login
  523: ErrorDocument	  500 /adm/errorhandler
  524: </Location>
  525: 
  526: <Location /adm/pickcourse>
  527: AuthType LONCAPA
  528: Require valid-user
  529: PerlAuthzHandler       Apache::lonacc
  530: SetHandler perl-script
  531: PerlHandler Apache::lonpickcourse
  532: ErrorDocument     403 /adm/login
  533: ErrorDocument	  500 /adm/errorhandler
  534: </Location>
  535: 
  536: <Location /adm/pickcode>
  537: AuthType LONCAPA
  538: Require valid-user
  539: PerlAuthzHandler       Apache::lonacc
  540: SetHandler perl-script
  541: PerlHandler Apache::lonpickcode
  542: ErrorDocument     403 /adm/login
  543: ErrorDocument	  500 /adm/errorhandler
  544: </Location>
  545: 
  546: <Location /adm/login>
  547: SetHandler perl-script
  548: PerlHandler Apache::lonlogin
  549: </Location>
  550: 
  551: <Location /adm/restrictedaccess>
  552: PerlAccessHandler      Apache::publiccheck
  553: AuthType LONCAPA
  554: Require valid-user
  555: SetHandler perl-script
  556: PerlAuthzHandler       Apache::lonacc
  557: PerlHandler Apache::restrictedaccess
  558: ErrorDocument	  500 /adm/errorhandler
  559: </Location>
  560: 
  561: <Location /adm/blockedaccess>
  562: PerlAccessHandler      Apache::publiccheck
  563: AuthType LONCAPA
  564: Require valid-user
  565: SetHandler perl-script
  566: PerlAuthzHandler       Apache::lonacc
  567: PerlHandler Apache::blockedaccess
  568: ErrorDocument     500 /adm/errorhandler
  569: </Location>
  570: 
  571: <Location /adm/logout>
  572: AuthType LONCAPA
  573: Require valid-user
  574: PerlAuthzHandler       Apache::lonacc
  575: SetHandler perl-script
  576: PerlHandler Apache::lonlogout
  577: ErrorDocument     403 /adm/login
  578: ErrorDocument     409 /adm/preferences?action=lockwarning
  579: ErrorDocument	  500 /adm/errorhandler
  580: </Location>
  581: 
  582: <Location /adm/switchserver>
  583: AuthType LONCAPA
  584: Require valid-user
  585: PerlAuthzHandler       Apache::lonacc
  586: SetHandler perl-script
  587: PerlHandler Apache::switchserver
  588: ErrorDocument     403 /adm/login
  589: ErrorDocument	  500 /adm/errorhandler
  590: </Location>
  591: 
  592: <Location /adm/authenticate>
  593: SetHandler perl-script
  594: PerlHandler Apache::lonauth
  595: </Location>
  596: 
  597: <Location /adm/migrateuser>
  598: SetHandler perl-script
  599: PerlHandler Apache::migrateuser
  600: </Location>
  601: 
  602: <Location /adm/annotations>
  603: AuthType LONCAPA
  604: Require valid-user
  605: PerlAuthzHandler       Apache::lonacc
  606: SetHandler perl-script
  607: PerlHandler Apache::admannotations
  608: ErrorDocument     403 /adm/login
  609: ErrorDocument	  500 /adm/errorhandler
  610: </Location>
  611: 
  612: <Location /adm/spellcheck>
  613: AuthType LONCAPA
  614: Require valid-user
  615: PerlAuthzHandler       Apache::lonacc
  616: SetHandler perl-script
  617: PerlHandler Apache::lonspeller
  618: ErrorDocument     403 /adm/login
  619: ErrorDocument	  500 /adm/errorhandler
  620: </Location>
  621: 
  622: <Location /adm/bookmarks>
  623: AuthType LONCAPA
  624: Require valid-user
  625: PerlAuthzHandler       Apache::lonacc
  626: SetHandler perl-script
  627: PerlHandler Apache::admbookmarks
  628: ErrorDocument     403 /adm/login
  629: ErrorDocument	  500 /adm/errorhandler
  630: </Location>
  631: 
  632: <Location /adm/flip>
  633: AuthType LONCAPA
  634: Require valid-user
  635: PerlAuthzHandler       Apache::lonacc
  636: SetHandler perl-script
  637: PerlHandler Apache::lonpageflip
  638: PerlCleanupHandler Apache::lonpageflip::cleanup
  639: PerlCleanupHandler	Apache::lonacc::cleanup
  640: ErrorDocument     406 /adm/roles
  641: ErrorDocument     403 /adm/login
  642: ErrorDocument	  500 /adm/errorhandler
  643: </Location>
  644: 
  645: <Location /adm/ambiguous>
  646: AuthType LONCAPA
  647: Require valid-user
  648: PerlAuthzHandler       Apache::lonacc
  649: SetHandler perl-script
  650: PerlHandler Apache::lonambiguous
  651: PerlCleanupHandler Apache::lonambiguous::cleanup
  652: PerlCleanupHandler	Apache::lonacc::cleanup
  653: ErrorDocument     403 /adm/login
  654: ErrorDocument	  500 /adm/errorhandler
  655: </Location>
  656: 
  657: <Location /adm/email>
  658: AuthType LONCAPA
  659: Require valid-user
  660: PerlAuthzHandler       Apache::lonacc
  661: SetHandler perl-script
  662: PerlHandler Apache::lonmsgdisplay
  663: ErrorDocument     403 /adm/login
  664: ErrorDocument	  500 /adm/errorhandler
  665: </Location>
  666: 
  667: <Location /adm/notify>
  668: AuthType LONCAPA
  669: Require valid-user
  670: PerlAuthzHandler       Apache::lonacc
  671: SetHandler perl-script
  672: PerlHandler Apache::lonnotify
  673: ErrorDocument     403 /adm/login
  674: ErrorDocument     500 /adm/errorhandler
  675: </Location>
  676: 
  677: <Location /adm/parmset>
  678: AuthType LONCAPA
  679: Require valid-user
  680: PerlAuthzHandler       Apache::lonacc
  681: SetHandler perl-script
  682: PerlHandler Apache::lonparmset
  683: ErrorDocument     403 /adm/login
  684: ErrorDocument     406 /adm/roles
  685: ErrorDocument	  500 /adm/errorhandler
  686: </Location>
  687: 
  688: <Location /adm/slotrequest>
  689: AuthType LONCAPA
  690: Require valid-user
  691: PerlAuthzHandler       Apache::lonacc
  692: SetHandler perl-script
  693: PerlHandler Apache::slotrequest
  694: ErrorDocument     403 /adm/login
  695: ErrorDocument     406 /adm/roles
  696: ErrorDocument	  500 /adm/errorhandler
  697: </Location>
  698: 
  699: <Location /adm/wizard>
  700: AuthType LONCAPA
  701: Require valid-user
  702: PerlAuthzHandler       Apache::lonacc
  703: SetHandler perl-script
  704: PerlHandler Apache::lonwizard
  705: ErrorDocument     403 /adm/login
  706: ErrorDocument     406 /adm/roles
  707: ErrorDocument	  500 /adm/errorhandler
  708: </Location>
  709: 
  710: <Location /adm/grades>
  711: AuthType LONCAPA
  712: Require valid-user
  713: PerlAuthzHandler       Apache::lonacc
  714: SetHandler perl-script
  715: PerlHandler Apache::grades
  716: ErrorDocument     403 /adm/login
  717: ErrorDocument     406 /adm/roles
  718: ErrorDocument	  500 /adm/errorhandler
  719: </Location>
  720: 
  721: <Location /adm/createcourse>
  722: AuthType LONCAPA
  723: Require valid-user
  724: PerlAuthzHandler       Apache::lonacc
  725: SetHandler perl-script
  726: PerlHandler Apache::loncreatecourse
  727: ErrorDocument     403 /adm/login
  728: ErrorDocument     406 /adm/roles
  729: ErrorDocument	  500 /adm/errorhandler
  730: </Location>
  731: 
  732: <Location /adm/modifycourse>
  733: AuthType LONCAPA
  734: Require valid-user
  735: PerlAuthzHandler       Apache::lonacc
  736: SetHandler perl-script
  737: PerlHandler Apache::lonmodifycourse
  738: ErrorDocument     403 /adm/login
  739: ErrorDocument     406 /adm/roles
  740: ErrorDocument     500 /adm/errorhandler
  741: </Location>
  742: 
  743: <Location /adm/domainprefs>
  744: AuthType LONCAPA
  745: Require valid-user
  746: PerlAuthzHandler       Apache::lonacc
  747: SetHandler perl-script
  748: PerlHandler Apache::domainprefs
  749: ErrorDocument     403 /adm/login
  750: ErrorDocument     406 /adm/roles
  751: ErrorDocument     500 /adm/errorhandler
  752: </Location>
  753: 
  754: <Location /adm/domainstatus>
  755: PerlAccessHandler       Apache::lonstatusacc
  756: SetHandler perl-script
  757: PerlHandler Apache::domainstatus
  758: ErrorDocument     403 /adm/login
  759: ErrorDocument     406 /adm/roles
  760: ErrorDocument     500 /adm/errorhandler
  761: </Location>
  762: 
  763: <Location /adm/createuser>
  764: AuthType LONCAPA
  765: Require valid-user
  766: PerlAuthzHandler       Apache::lonacc
  767: SetHandler perl-script
  768: PerlHandler Apache::loncreateuser
  769: ErrorDocument     403 /adm/login
  770: ErrorDocument     406 /adm/roles
  771: ErrorDocument	  500 /adm/errorhandler
  772: </Location>
  773: 
  774: <Location /adm/publish>
  775: AuthType LONCAPA
  776: Require valid-user
  777: PerlAuthzHandler       Apache::lonacc
  778: SetHandler perl-script
  779: PerlHandler Apache::lonpublisher
  780: ErrorDocument     403 /adm/login
  781: ErrorDocument     404 /adm/notfound.html
  782: ErrorDocument     406 /adm/unauthorized
  783: ErrorDocument	  500 /adm/errorhandler
  784: </Location>
  785: 
  786: <LocationMatch "^/+\~.*/$">
  787: AuthType LONCAPA
  788: Require valid-user
  789: PerlAuthzHandler       Apache::loncacc
  790: SetHandler perl-script
  791: PerlHandler Apache::lonpubdir
  792: ErrorDocument     403 /adm/login
  793: ErrorDocument     404 /adm/notfound.html
  794: ErrorDocument     406 /adm/unauthorized
  795: ErrorDocument	  500 /adm/errorhandler
  796: </LocationMatch>
  797: 
  798: <Location /adm/pubdir>
  799: AuthType LONCAPA
  800: Require valid-user
  801: PerlAuthzHandler       Apache::lonacc
  802: SetHandler perl-script
  803: PerlHandler Apache::lonpubdir
  804: ErrorDocument     403 /adm/login
  805: ErrorDocument     404 /adm/notfound.html
  806: ErrorDocument     406 /adm/unauthorized
  807: ErrorDocument	  500 /adm/errorhandler
  808: </Location>
  809: 
  810: <Location /adm/unauthorized>
  811: AuthType LONCAPA
  812: Require valid-user
  813: PerlAuthzHandler       Apache::lonacc
  814: SetHandler perl-script
  815: PerlHandler Apache::lonunauthorized
  816: ErrorDocument     403 /adm/login
  817: ErrorDocument     404 /adm/notfound.html
  818: ErrorDocument	  500 /adm/errorhandler
  819: </Location>
  820: 
  821: <Location /adm/retrieve>
  822: AuthType LONCAPA
  823: Require valid-user
  824: PerlAuthzHandler       Apache::lonacc
  825: SetHandler perl-script
  826: PerlHandler Apache::lonretrieve
  827: ErrorDocument     403 /adm/login
  828: ErrorDocument     404 /adm/notfound.html
  829: ErrorDocument     406 /adm/unauthorized
  830: ErrorDocument	  500 /adm/errorhandler
  831: </Location>
  832: 
  833: <Location /adm/cleanup>
  834: AuthType LONCAPA
  835: Require valid-user
  836: PerlAuthzHandler       Apache::lonacc
  837: SetHandler perl-script
  838: PerlHandler Apache::loncleanup
  839: ErrorDocument     403 /adm/login
  840: ErrorDocument     404 /adm/notfound.html
  841: ErrorDocument     406 /adm/unauthorized
  842: ErrorDocument	  500 /adm/errorhandler
  843: </Location>
  844: 
  845: <Location /adm/cfile>
  846: AuthType LONCAPA
  847: Require valid-user
  848: PerlAuthzHandler       Apache::lonacc
  849: SetHandler perl-script
  850: PerlHandler Apache::loncfile
  851: ErrorDocument     403 /adm/login
  852: ErrorDocument     404 /adm/notfound.html
  853: ErrorDocument     406 /adm/unauthorized
  854: ErrorDocument	  500 /adm/errorhandler
  855: </Location>
  856: 
  857: <Location /adm/diff>
  858: AuthType LONCAPA
  859: Require valid-user
  860: PerlAuthzHandler       Apache::lonacc
  861: SetHandler perl-script
  862: PerlHandler Apache::londiff
  863: ErrorDocument     403 /adm/login
  864: ErrorDocument     404 /adm/notfound.html
  865: ErrorDocument     406 /adm/unauthorized
  866: ErrorDocument	  500 /adm/errorhandler
  867: </Location>
  868: 
  869: <Location /adm/upload>
  870: AuthType LONCAPA
  871: Require valid-user
  872: PerlAuthzHandler       Apache::lonacc
  873: SetHandler perl-script
  874: PerlHandler Apache::lonupload
  875: ErrorDocument     403 /adm/login
  876: ErrorDocument     404 /adm/notfound.html
  877: ErrorDocument     406 /adm/unauthorized
  878: ErrorDocument	  500 /adm/errorhandler
  879: </Location>
  880: 
  881: <Location /adm/imsimport>
  882: AuthType LONCAPA
  883: Require valid-user
  884: PerlAuthzHandler       Apache::lonacc
  885: SetHandler perl-script
  886: PerlHandler Apache::imsimport
  887: ErrorDocument     403 /adm/login
  888: ErrorDocument     404 /adm/notfound.html
  889: ErrorDocument     406 /adm/unauthorized
  890: ErrorDocument     500 /adm/errorhandler
  891: </Location>
  892: 
  893: <Location /adm/testbank>
  894: AuthType LONCAPA
  895: Require valid-user
  896: PerlAuthzHandler       Apache::lonacc
  897: SetHandler perl-script
  898: PerlHandler Apache::testbankimport
  899: ErrorDocument     403 /adm/login
  900: ErrorDocument     404 /adm/notfound.html
  901: ErrorDocument     406 /adm/unauthorized
  902: ErrorDocument     500 /adm/errorhandler
  903: </Location>
  904: 
  905: <Location /adm/assesscalc>
  906: AuthType LONCAPA
  907: Require valid-user
  908: PerlAuthzHandler       Apache::lonacc
  909: SetHandler perl-script
  910: PerlHandler Apache::lonspreadsheet
  911: ErrorDocument     403 /adm/login
  912: ErrorDocument     406 /adm/roles
  913: ErrorDocument     413 /adm/overloaded.txt
  914: ErrorDocument	  500 /adm/errorhandler
  915: </Location>
  916: 
  917: <Location /adm/studentcalc>
  918: AuthType LONCAPA
  919: Require valid-user
  920: PerlAuthzHandler       Apache::lonacc
  921: SetHandler perl-script
  922: PerlHandler Apache::lonspreadsheet
  923: ErrorDocument     403 /adm/login
  924: ErrorDocument     406 /adm/roles
  925: ErrorDocument     413 /adm/overloaded.txt
  926: ErrorDocument	  500 /adm/errorhandler
  927: </Location>
  928: 
  929: <Location /adm/classcalc>
  930: AuthType LONCAPA
  931: Require valid-user
  932: PerlAuthzHandler       Apache::lonacc
  933: SetHandler perl-script
  934: PerlHandler Apache::lonspreadsheet
  935: ErrorDocument     403 /adm/login
  936: ErrorDocument     406 /adm/roles
  937: ErrorDocument     413 /adm/overloaded.txt
  938: ErrorDocument	  500 /adm/errorhandler
  939: </Location>
  940: 
  941: <Location /adm/dropadd>
  942: AuthType LONCAPA
  943: Require valid-user
  944: PerlAuthzHandler       Apache::lonacc
  945: SetHandler perl-script
  946: PerlHandler Apache::londropadd
  947: ErrorDocument     403 /adm/login
  948: ErrorDocument     406 /adm/roles
  949: ErrorDocument	  500 /adm/errorhandler
  950: </Location>
  951: 
  952: <Location /adm/viewclasslist>
  953: AuthType LONCAPA
  954: Require valid-user
  955: PerlAuthzHandler       Apache::lonacc
  956: SetHandler perl-script
  957: PerlHandler Apache::lonviewclasslist
  958: ErrorDocument     403 /adm/login
  959: ErrorDocument     406 /adm/roles
  960: ErrorDocument	  500 /adm/errorhandler
  961: </Location>
  962: 
  963: <Location /adm/coursegroups>
  964: AuthType LONCAPA
  965: Require valid-user
  966: PerlAuthzHandler       Apache::lonacc
  967: SetHandler perl-script
  968: PerlHandler Apache::loncoursegroups
  969: ErrorDocument     403 /adm/login
  970: ErrorDocument     406 /adm/roles
  971: ErrorDocument     500 /adm/errorhandler
  972: </Location>
  973: 
  974: <Location /adm/groupboards>
  975: AuthType LONCAPA
  976: Require valid-user
  977: PerlAuthzHandler       Apache::lonacc
  978: SetHandler perl-script
  979: PerlHandler Apache::groupboards
  980: ErrorDocument     403 /adm/login
  981: ErrorDocument     406 /adm/roles
  982: ErrorDocument     500 /adm/errorhandler
  983: </Location>
  984: 
  985: <Location /adm/grouproster>
  986: AuthType LONCAPA
  987: Require valid-user
  988: PerlAuthzHandler       Apache::lonacc
  989: SetHandler perl-script
  990: PerlHandler Apache::grouproster
  991: ErrorDocument     403 /adm/login
  992: ErrorDocument     406 /adm/roles
  993: ErrorDocument     500 /adm/errorhandler
  994: </Location>
  995: 
  996: <Location /adm/whatsnew>
  997: AuthType LONCAPA
  998: Require valid-user
  999: PerlAuthzHandler       Apache::lonacc
 1000: SetHandler perl-script
 1001: PerlHandler Apache::lonwhatsnew
 1002: ErrorDocument     403 /adm/login
 1003: ErrorDocument     406 /adm/roles
 1004: ErrorDocument     500 /adm/errorhandler
 1005: </Location>
 1006: 
 1007: <Location /adm/populate>
 1008: AuthType LONCAPA
 1009: Require valid-user
 1010: PerlAuthzHandler       Apache::lonacc
 1011: SetHandler perl-script
 1012: PerlHandler Apache::lonpopulate
 1013: ErrorDocument     403 /adm/login
 1014: ErrorDocument     406 /adm/roles
 1015: ErrorDocument     500 /adm/errorhandler
 1016: </Location>
 1017: 
 1018: <Location /adm/managekeys>
 1019: AuthType LONCAPA
 1020: Require valid-user
 1021: PerlAuthzHandler       Apache::lonacc
 1022: SetHandler perl-script
 1023: PerlHandler Apache::lonmanagekeys
 1024: ErrorDocument     403 /adm/login
 1025: ErrorDocument     406 /adm/roles
 1026: ErrorDocument	  500 /adm/errorhandler
 1027: </Location>
 1028: 
 1029: <Location /adm/printout>
 1030: AuthType LONCAPA
 1031: Require valid-user
 1032: PerlAuthzHandler       Apache::lonacc
 1033: SetHandler perl-script
 1034: PerlHandler Apache::lonprintout
 1035: ErrorDocument     403 /adm/login
 1036: ErrorDocument     413 /adm/overloaded.txt
 1037: ErrorDocument	  500 /adm/errorhandler
 1038: </Location>
 1039: 
 1040: <Location /adm/feedback>
 1041: AuthType LONCAPA
 1042: Require valid-user
 1043: PerlAuthzHandler       Apache::lonacc
 1044: SetHandler perl-script
 1045: PerlHandler Apache::lonfeedback
 1046: ErrorDocument     403 /adm/login
 1047: ErrorDocument	  500 /adm/errorhandler
 1048: </Location>
 1049: 
 1050: <Location /adm/coursedocs>
 1051: AuthType LONCAPA
 1052: Require valid-user
 1053: PerlAuthzHandler       Apache::lonacc
 1054: SetHandler perl-script
 1055: PerlHandler Apache::londocs
 1056: PerlCleanupHandler Apache::londocs::untiehash
 1057: PerlCleanupHandler	Apache::lonacc::cleanup
 1058: ErrorDocument     403 /adm/login
 1059: ErrorDocument	  500 /adm/errorhandler
 1060: </Location>
 1061: 
 1062: <Location /adm/imsimportdocs>
 1063: AuthType LONCAPA
 1064: Require valid-user
 1065: PerlAuthzHandler       Apache::lonacc
 1066: SetHandler perl-script
 1067: PerlHandler Apache::imsimportdocs
 1068: ErrorDocument     403 /adm/login
 1069: ErrorDocument     500 /adm/errorhandler
 1070: </Location>
 1071: 
 1072: <LocationMatch "^/adm/announcements">
 1073: AuthType LONCAPA
 1074: Require valid-user
 1075: PerlAuthzHandler       Apache::lonacc
 1076: SetHandler perl-script
 1077: PerlHandler Apache::lonannounce
 1078: ErrorDocument     403 /adm/login
 1079: ErrorDocument	  500 /adm/errorhandler
 1080: </LocationMatch>
 1081: 
 1082: <Location /adm/chat>
 1083: AuthType LONCAPA
 1084: Require valid-user
 1085: PerlAuthzHandler       Apache::lonacc
 1086: SetHandler perl-script
 1087: PerlHandler Apache::lonchat
 1088: ErrorDocument	  500 /adm/errorhandler
 1089: </Location>
 1090: 
 1091: <Location /adm/chatfetch>
 1092: AuthType LONCAPA
 1093: Require valid-user
 1094: PerlAuthzHandler       Apache::lonacc
 1095: SetHandler perl-script
 1096: PerlHandler Apache::lonchatfetch
 1097: ErrorDocument     413 /adm/overloaded.txt
 1098: ErrorDocument	  500 /adm/errorhandler
 1099: </Location>
 1100: 
 1101: <Location /adm/groupchat>
 1102: AuthType LONCAPA
 1103: Require valid-user
 1104: PerlAuthzHandler       Apache::lonacc
 1105: SetHandler perl-script
 1106: PerlHandler Apache::longroupchat
 1107: ErrorDocument     403 /adm/login
 1108: ErrorDocument     500 /adm/errorhandler
 1109: </Location>
 1110: 
 1111: <Location /adm/evaluate>
 1112: AuthType LONCAPA
 1113: Require valid-user
 1114: PerlAuthzHandler       Apache::lonacc
 1115: SetHandler perl-script
 1116: PerlHandler Apache::lonevaluate
 1117: ErrorDocument     403 /adm/login
 1118: ErrorDocument	  500 /adm/errorhandler
 1119: </Location>
 1120: 
 1121: <Location /adm/preferences>
 1122: AuthType LONCAPA
 1123: Require valid-user
 1124: PerlAuthzHandler       Apache::lonacc
 1125: SetHandler perl-script
 1126: PerlHandler Apache::lonpreferences
 1127: ErrorDocument     403 /adm/login
 1128: ErrorDocument	  500 /adm/errorhandler
 1129: </Location>
 1130: 
 1131: <Location /adm/communicate>
 1132: AuthType LONCAPA
 1133: Require valid-user
 1134: PerlAuthzHandler       Apache::lonacc
 1135: SetHandler perl-script
 1136: PerlHandler Apache::loncommunicate
 1137: ErrorDocument     403 /adm/login
 1138: ErrorDocument	  500 /adm/errorhandler
 1139: </Location>
 1140: 
 1141: <Location /adm/searchcat>
 1142: AuthType LONCAPA
 1143: Require valid-user
 1144: PerlAuthzHandler       Apache::lonacc
 1145: SetHandler perl-script
 1146: PerlHandler Apache::lonsearchcat
 1147: PerlCleanupHandler Apache::lonsearchcat::cleanup
 1148: PerlCleanupHandler	Apache::lonacc::cleanup
 1149: ErrorDocument     403 /adm/login
 1150: ErrorDocument     413 /adm/overloaded.txt
 1151: ErrorDocument	  500 /adm/errorhandler
 1152: </Location>
 1153: 
 1154: <Location /adm/navmaps>
 1155: AuthType LONCAPA
 1156: Require valid-user
 1157: PerlAuthzHandler       Apache::lonacc
 1158: SetHandler perl-script
 1159: PerlHandler Apache::lonnavdisplay
 1160: ErrorDocument     403 /adm/login
 1161: ErrorDocument     406 /adm/roles
 1162: ErrorDocument	  500 /adm/errorhandler
 1163: </Location>
 1164: 
 1165: <Location /adm/quickgrades>
 1166: AuthType LONCAPA
 1167: Require valid-user
 1168: PerlAuthzHandler       Apache::lonacc
 1169: SetHandler perl-script
 1170: PerlHandler Apache::lonquickgrades
 1171: ErrorDocument     403 /adm/login
 1172: ErrorDocument     406 /adm/roles
 1173: ErrorDocument     500 /adm/errorhandler
 1174: </Location>
 1175: 
 1176: <Location /adm/groupsort>
 1177: AuthType LONCAPA
 1178: Require valid-user
 1179: PerlAuthzHandler	Apache::lonacc
 1180: SetHandler perl-script
 1181: PerlHandler Apache::groupsort
 1182: PerlCleanupHandler Apache::groupsort::cleanup
 1183: PerlCleanupHandler	Apache::lonacc::cleanup
 1184: ErrorDocument     403 /adm/login
 1185: ErrorDocument	  500 /adm/errorhandler
 1186: </Location>
 1187: 
 1188: <Location /adm/errorhandler>
 1189: SetHandler perl-script
 1190: PerlHandler Apache::lonerrorhandler
 1191: </Location>
 1192: 
 1193: <LocationMatch "^/adm/help/.*\.hlp$">
 1194: AuthType LONCAPA
 1195: Require valid-user
 1196: PerlAccessHandler      Apache::publiccheck
 1197: PerlAuthzHandler	Apache::lonacc
 1198: SetHandler perl-script
 1199: PerlHandler Apache::lonhelp
 1200: ErrorDocument	  500 /adm/errorhandler
 1201: </LocationMatch>
 1202: 
 1203: <LocationMatch "^/adm/helpmenu">
 1204: AuthType LONCAPA
 1205: Require valid-user
 1206: PerlAuthzHandler       Apache::lonacc
 1207: SetHandler perl-script
 1208: PerlHandler Apache::lonhelpmenu
 1209: ErrorDocument	  500 /adm/errorhandler
 1210: </LocationMatch>
 1211: 
 1212: <LocationMatch "^/adm/support">
 1213: AuthType LONCAPA
 1214: Require valid-user
 1215: PerlAuthzHandler       Apache::lonacc
 1216: SetHandler perl-script
 1217: PerlHandler Apache::lonsupportreq
 1218: ErrorDocument	  500 /adm/errorhandler
 1219: </LocationMatch>
 1220: 
 1221: <LocationMatch "^/adm/helpdesk">
 1222: SetHandler perl-script
 1223: PerlHandler Apache::lonsupportreq
 1224: ErrorDocument	  500 /adm/errorhandler
 1225: </LocationMatch>
 1226: 
 1227: <LocationMatch "^/adm/css">
 1228: SetHandler perl-script
 1229: PerlHandler Apache::loncss
 1230: ErrorDocument	  500 /adm/errorhandler
 1231: </LocationMatch>
 1232: 
 1233: <LocationMatch "^/adm/coursecatalog">
 1234: SetHandler perl-script
 1235: PerlHandler Apache::coursecatalog
 1236: ErrorDocument	  500 /adm/errorhandler
 1237: </LocationMatch>
 1238: 
 1239: <LocationMatch "^/adm/resetpw">
 1240: SetHandler perl-script
 1241: PerlHandler Apache::resetpw
 1242: ErrorDocument     500 /adm/errorhandler
 1243: </LocationMatch>
 1244: 
 1245: <LocationMatch "^/adm/selfenroll">
 1246: SetHandler perl-script
 1247: PerlHandler Apache::selfenroll
 1248: ErrorDocument     500 /adm/errorhandler
 1249: </LocationMatch>
 1250: 
 1251: <LocationMatch "^/adm/createaccount">
 1252: SetHandler perl-script
 1253: PerlHandler Apache::createaccount
 1254: ErrorDocument     500 /adm/errorhandler
 1255: </LocationMatch>
 1256: 
 1257: <LocationMatch "^/adm/dns">
 1258: SetHandler perl-script
 1259: PerlHandler Apache::londns
 1260: ErrorDocument     500 /adm/errorhandler
 1261: </LocationMatch>
 1262: 
 1263: # ------------------------------------------------- Backdoor Adm Tests/Programs
 1264: 
 1265: <Location /adm/test>
 1266: PerlAccessHandler Apache::lonstatusacc
 1267: SetHandler perl-script
 1268: PerlHandler Apache::lontest
 1269: </Location>
 1270: 
 1271: # ------------------------------------------------------- Shutting down a child
 1272: 
 1273: PerlChildExitHandler Apache::lonacc::goodbye
 1274: 
 1275: #
 1276: # LON-CAPA Section (extensions to access.conf permission configuration)
 1277: #
 1278: # =========================================================== Directory Options
 1279: 
 1280: # Start out with "no"
 1281: 
 1282: <Directory />
 1283: Options None
 1284: AllowOverride None
 1285: order deny,allow
 1286: deny from all
 1287: </Directory>
 1288: 
 1289: # Allow uploaded files to be served
 1290: 
 1291: <Directory "/home/httpd/lonUsers">
 1292: Options Includes FollowSymLinks
 1293: AllowOverride None
 1294: order allow,deny
 1295: allow from all
 1296: </Directory>
 1297:  
 1298: # Allow construction space files to be served
 1299: 
 1300: <Directory "/home/*/public_html/" >
 1301: Options Includes FollowSymLinks
 1302: AllowOverride
 1303: order allow,deny
 1304: allow from all
 1305: </Directory>
 1306: 
 1307: # Yes to symbolic links and server-side includes
 1308: 
 1309: <Directory /home/httpd/html>
 1310: Options Includes FollowSymLinks
 1311: AllowOverride None
 1312: order allow,deny
 1313: allow from all
 1314: </Directory>
 1315: 
 1316: # If it is in cgi-bin, then it can be executed as a CGI script.
 1317: 
 1318: <Directory /home/httpd/cgi-bin>
 1319: AllowOverride None
 1320: Options ExecCGI FollowSymLinks
 1321: order allow,deny
 1322: allow from all
 1323: </Directory>
 1324: 
 1325: # Allow serving of files in prtspool
 1326: 
 1327: <Directory "/home/httpd/prtspool/">
 1328: Options Includes FollowSymLinks
 1329: AllowOverride None
 1330: order allow,deny
 1331: allow from all
 1332: </Directory>
 1333: 
 1334: # Allow serving of files in zipspool
 1335: 
 1336: <Directory "/home/httpd/zipspool/">
 1337: Options Includes FollowSymLinks
 1338: AllowOverride None
 1339: order allow,deny
 1340: allow from all
 1341: </Directory>
 1342: 
 1343: # Allow serving of files in captchaspool
 1344: 
 1345: <Directory "/home/httpd/captchaspool/">
 1346: Options Includes FollowSymLinks
 1347: AllowOverride None
 1348: order allow,deny
 1349: allow from all
 1350: </Directory>
 1351: 
 1352: # ============================================================= Access Handlers
 1353: 
 1354: # ------------------------------------------------- Allow server-status reports
 1355: <Location /server-status>
 1356: PerlAccessHandler Apache::lonstatusacc
 1357: SetHandler server-status
 1358: </Location>
 1359: 
 1360: # ------------------------ Allow LON-CAPA "low-level" connection status reports
 1361: <LocationMatch "^/+lon-status/.*">
 1362: PerlAccessHandler Apache::lonstatusacc
 1363: ErrorDocument     406 /adm/roles
 1364: ErrorDocument     500 /adm/errorhandler
 1365: </LocationMatch>
 1366: 
 1367: # ------------------- Allow access to local system documentation from localhost
 1368: Alias /doc /usr/doc
 1369: <Directory /usr/doc>
 1370: order deny,allow
 1371: deny from all
 1372: allow from localhost
 1373: Options Indexes FollowSymLinks
 1374: </Directory>
 1375: 
 1376: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
 1377: # ====================================== Internal Settings / Perl Configuration
 1378: 
 1379: PerlSetVar	 lonVersion   '<!-- VERSION -->'
 1380: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
 1381: PerlSetVar       lonTabDir    /home/httpd/lonTabs
 1382: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
 1383: PerlSetVar       lonIconsURL  /adm/lonIcons
 1384: PerlSetVar       londPort     5663
 1385: PerlSetVar       lonSysEMail  korte@lite.msu.edu
 1386: PerlSetVar       lonDaemons   /home/httpd/perl
 1387: PerlSetVar       lonSockDir   /home/httpd/sockets
 1388: PerlSetVar       lonSockCreate   /home/httpd/sockets/common
 1389: PerlSetVar       lonDocRoot   /home/httpd/html
 1390: PerlSetVar       lonPrtDir    /home/httpd/prtspool
 1391: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
 1392: PerlSetVar       lonZipDir    /home/httpd/zipspool
 1393: PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool
 1394: PerlSetVar       lonCaptchaDb     /home/httpd/captchadb 
 1395: PerlSetVar       lonFontsDir     /home/httpd/html/adm/fonts
 1396: # & separated list of : separated fields in order of
 1397: # - internal name to call it, 
 1398: # - regexp that it should match (done case-insensitively)
 1399: # - regexp that is should not match (done case-insensitively)
 1400: # - regexp that will pull out the version number into $1
 1401: # - a number that describes the minimum version that has mathml support
 1402: # - a number that describes the minimum number version that has unicode support
 1403: 
 1404: PerlSetVar       lonBrowsDet  explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:9999&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
 1405: 
 1406: PerlSetVar       lonTextBrowsers windows\s+ce:lynx
 1407: PerlSetVar       lonScansDir  /home/httpd/scantron
 1408: PerlSetVar       lonScriptTimeout 10
 1409: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
 1410: PerlSetVar	 FAQHost	http://help.lon-capa.org/
 1411: # -----------------------------------------------------------------------------
 1412: # NOTE: lonSqlAccess key is the password for the MySQL user
 1413: # www@localhost.  This value must always be "localhostkey".
 1414: # The only security risk occurs when somebody logs in as 'www' on your system
 1415: # (in which case you have much bigger problems than whether or not they
 1416: # can access the non-authoritative loncapa database on your machine).
 1417: 
 1418: PerlSetVar       lonSqlAccess   localhostkey
 1419: 
 1420: #----------------------------------------------------------------------------
 1421: #
 1422: #   Parameters used by secure lond/lonc
 1423: 
 1424: #
 1425: #   Secure lond/lonc require ssl certificate and private
 1426: #   key files to function correctly.  The certificate
 1427: #   files need not be terribly secure, but the private key files
 1428: #   should be set up so that only www (the lonc/lond effective user)
 1429: #   can read them.
 1430: # 
 1431: #   The definition below is the full path to the directory that
 1432: #   contains the certificate and key files:
 1433: 
 1434: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
 1435: 
 1436: #
 1437: #  Secure lond/lonc require two certificates and a private host key.
 1438: #  The certificates required are that of the lonCAPA certificate authority
 1439: #  and the certificate that authority issued to this host.
 1440: #  lonnetCertificateAuthority is the name of the file that contains the
 1441: #                            lonCAPA certificate authority's certificate.
 1442: #  lonnetCertificate is the name of the file that contains the certificate
 1443: #                    issued to the host by the certificate authority.
 1444: #  Both of these variables are names of files assumed to be in 
 1445: #  lonCertificateDirectory:
 1446: 
 1447: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
 1448: PerlSetVar lonnetCertificate          lonhostcert.pem
 1449: 
 1450: #
 1451: #  To generate the request for a certificate, and to negotiate the
 1452: #  initial ssl connection, the host requires a private key.  This key
 1453: #  is created at lonCAPA install time.  Did we mention above that it
 1454: #  should be set so that only www can read it?  The variale below
 1455: #  is the name of the file relative to lonnetCertificateDirectory
 1456: #  that has the host's private key.  Did we remember to tell you to
 1457: #  keep the permissions on that file set to rw-------  (0600)?
 1458: #  
 1459: 
 1460: PerlSetVar lonnetPrivateKey         lonKey.pem
 1461: 
 1462: # Did we mention that the file described above must have
 1463: # permissions really locked down so that it can't be stolen?
 1464: 
 1465: #-------------------------------------------------------------------------
 1466: 
 1467: #   Parameters that define where all the ssl stuff is that's needed
 1468: #   to generate certificate requests and, on a system that's a CA
 1469: #   the certificate authority.
 1470: #    
 1471: #    SSLProgram    -> Path to the openssl command
 1472: #    SSLDirectory  -> Directory containing ssl configuration files etc.
 1473: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
 1474: #                     Authority.
 1475: #    SSLCAFile     -> Full path to the Certificate authority file 
 1476: #                    (on the cert manager system).
 1477: #    SSLEmail      -> E-mail address of loncapa certificate manager.
 1478: #    The following are good for the loncapa redhat installs and
 1479: #    the loncapa certificate authority system:
 1480: #
 1481: PerlSetVar SSLProgram	/usr/bin/openssl
 1482: PerlSetVar SSLDirectory /usr/share/ssl
 1483: PerlSetVar SSLCAConfig  loncapaca
 1484: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1485: PerlSetVar SSLEmail     certificate@lon-capa.org
 1486: 
 1487: #-------------------------------------------------------------------------
 1488: 
 1489: 
 1490: 
 1491: 
 1492: # ====================================== Include machine-specific configuration
 1493: 
 1494: Include conf/loncapa.conf
 1495: 
 1496: # ================================================= Include local configuration
 1497: 
 1498: Include conf/loncapa_apache_local*.conf
 1499: 
 1500: # ================================================== Initiate mod_perl starting
 1501: 
 1502: PerlRequire      conf/startup.pl
 1503: <IfDefine !MODPERL2>
 1504: PerlFreshRestart On
 1505: </IfDefine>

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