File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.191: download - view: text, annotated - select for diffs
Thu Feb 18 16:54:53 2010 UTC (14 years, 2 months ago) by droeschl
Branches: MAIN
CVS tags: HEAD
Introduced Apache Directive to send proper expires header for static content.
This change avoids unnessesary HTTP requests being sent by browsers.
Caching is set to 12 hours.
This might avoid the need for a lightweight webserver.

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

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