File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.56: download - view: text, annotated - select for diffs
Thu Jul 17 13:50:44 2003 UTC (20 years, 10 months ago) by www
Branches: MAIN
CVS tags: HEAD
Bug #1728: style files can be editied in CSTR space

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: ## $Id: loncapa_apache.conf,v 1.56 2003/07/17 13:50:44 www 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: # =============================================================== Miscellaneous
   27: 
   28: ServerAdmin korte@lite.msu.edu
   29: ExtendedStatus On
   30: #
   31: # LON-CAPA Section (extensions to srm.conf name space servicing)
   32: #
   33: # ===================================================================== Aliases
   34: 
   35: Alias /prtspool/ /home/httpd/prtspool/
   36: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
   37: 
   38: # ================================================================= Directories
   39: 
   40: # ------------------------------------------------------------- Access Handlers
   41: 
   42: PerlTransHandler	Apache::lontrans
   43: 
   44: #PerlWarn On
   45: <LocationMatch "^/+res.*">
   46: PerlAccessHandler       Apache::lonacc
   47: PerlHeaderParserHandler Apache::lonrep
   48: ErrorDocument     403 /adm/login
   49: ErrorDocument     404 /adm/notfound.html
   50: ErrorDocument     406 /adm/roles
   51: ErrorDocument	  500 /adm/errorhandler
   52: </LocationMatch>
   53: 
   54: <LocationMatch "^/+userfiles.*">
   55: PerlAccessHandler       Apache::lontokacc
   56: </LocationMatch>
   57: 
   58: <LocationMatch "^/+uploaded.*">
   59: PerlAccessHandler	Apache::lonuploadedacc
   60: ErrorDocument     404 /adm/notfound.html
   61: ErrorDocument	  500 /adm/errorhandler
   62: </LocationMatch>
   63: 
   64: <LocationMatch "^/+public/.*/syllabus$">
   65: PerlAccessHandler	Apache::lonacc
   66: SetHandler              perl-script
   67: PerlHandler             Apache::lonsyllabus
   68: ErrorDocument     404 /adm/notfound.html
   69: ErrorDocument	  500 /adm/errorhandler
   70: </LocationMatch>
   71: 
   72: <LocationMatch "^/adm/.*/aboutme$">
   73: PerlAccessHandler	Apache::lonacc
   74: SetHandler              perl-script
   75: PerlHandler             Apache::lonaboutme
   76: ErrorDocument     404 /adm/notfound.html
   77: ErrorDocument     406 /adm/notinit.html
   78: ErrorDocument	  500 /adm/errorhandler
   79: </LocationMatch>
   80: 
   81: <LocationMatch "^/adm/.*/smppg$">
   82: PerlAccessHandler	Apache::lonacc
   83: SetHandler              perl-script
   84: PerlHandler             Apache::lonsimplepage
   85: ErrorDocument     404 /adm/notfound.html
   86: ErrorDocument     406 /adm/notinit.html
   87: ErrorDocument	  500 /adm/errorhandler
   88: </LocationMatch>
   89: 
   90: <LocationMatch "^/adm/.*/bulletinboard$">
   91: PerlAccessHandler	Apache::lonacc
   92: SetHandler              perl-script
   93: PerlHandler             Apache::lonbulletin
   94: ErrorDocument     404 /adm/notfound.html
   95: ErrorDocument     406 /adm/notinit.html
   96: ErrorDocument	  500 /adm/errorhandler
   97: </LocationMatch>
   98: 
   99: <LocationMatch "\.problem/smpedit$">
  100: PerlAccessHandler	Apache::lonacc
  101: SetHandler              perl-script
  102: PerlHandler             Apache::lonsimpleproblemedit
  103: ErrorDocument     404 /adm/notfound.html
  104: ErrorDocument     406 /adm/notinit.html
  105: ErrorDocument	  500 /adm/errorhandler
  106: </LocationMatch>
  107: 
  108: <LocationMatch "^/+priv.*">
  109: PerlAccessHandler Apache::loncacc
  110: SetHandler        perl-script
  111: PerlHandler       Apache::lonconstruct
  112: ErrorDocument     403 /adm/login
  113: ErrorDocument     404 /adm/notfound.html
  114: ErrorDocument     406 /adm/unauthorized
  115: ErrorDocument	  500 /adm/errorhandler
  116: </LocationMatch>
  117: 
  118: <LocationMatch "^/+raw.*">
  119: PerlAccessHandler Apache::lonracc
  120: </LocationMatch>
  121: 
  122: <LocationMatch "^/+\~.*">
  123: PerlAccessHandler Apache::loncacc
  124: ErrorDocument     403 /adm/login
  125: ErrorDocument     404 /adm/notfound.html
  126: ErrorDocument     406 /adm/unauthorized
  127: ErrorDocument	  500 /adm/errorhandler
  128: AllowOverride None
  129: </LocationMatch>
  130: 
  131: <LocationMatch "^/adm/helper/.*\.helper$">
  132: PerlAccessHandler Apache::lonacc
  133: SetHandler        perl-script
  134: PerlHandler       Apache::lonhelper
  135: ErrorDocument     403 /adm/login
  136: ErrorDocument     404 /adm/notfound.html
  137: ErrorDocument     406 /adm/unauthorized
  138: ErrorDocument     500 /adm/errorhandler
  139: </LocationMatch>
  140: 
  141: <LocationMatch "/prtspool">
  142: PerlAccessHandler Apache::lonacc
  143: ErrorDocument     403 /adm/login
  144: ErrorDocument     404 /adm/notfound.html
  145: ErrorDocument     406 /adm/roles
  146: ErrorDocument	  500 /adm/errorhandler
  147: </LocationMatch>
  148: # ------------------------------------------------------------------------- RAT
  149: 
  150: <LocationMatch "^/\~.*\.sequence$">
  151: SetHandler perl-script
  152: PerlHandler Apache::lonratedt
  153: </LocationMatch>
  154: 
  155: <LocationMatch "^/\~.*\.page$">
  156: SetHandler perl-script
  157: PerlHandler Apache::lonratedt
  158: </LocationMatch>
  159: 
  160: <LocationMatch "^/\~.*\/ratserver$">
  161: SetHandler perl-script
  162: PerlHandler Apache::lonratsrv
  163: </LocationMatch>
  164: 
  165: <Location /adm/ratparms>
  166: PerlAccessHandler       Apache::lonacc
  167: SetHandler perl-script
  168: PerlHandler Apache::lonratparms
  169: ErrorDocument     403 /adm/login
  170: ErrorDocument	  500 /adm/errorhandler
  171: </Location>
  172: 
  173: # --------------------------------------------- Resource Space Content Handlers
  174: 
  175: <LocationMatch "^/res.*/$">
  176: SetHandler perl-script
  177: PerlHandler Apache::lonindexer
  178: PerlCleanupHandler Apache::lonindexer::cleanup
  179: </LocationMatch>
  180: 
  181: <LocationMatch "^/(res|\~).*\.tex$">
  182: SetHandler perl-script
  183: PerlHandler Apache::lontex
  184: </LocationMatch>
  185: 
  186: <LocationMatch "^/res/.*\.page$>
  187: SetHandler perl-script
  188: PerlHandler Apache::lonpage
  189: </LocationMatch>
  190: 
  191: <LocationMatch "^/res/.*\.sequence$>
  192: SetHandler perl-script
  193: PerlHandler Apache::lonsequence
  194: </LocationMatch>
  195: 
  196: <LocationMatch "^/(res|\~|public|uploaded|adm).*\.meta$>
  197: SetHandler perl-script
  198: PerlHandler Apache::lonmeta
  199: </LocationMatch>
  200: 
  201: <LocationMatch "^/(res|\~).*\.rights$>
  202: SetHandler perl-script
  203: PerlHandler Apache::lonrights
  204: </LocationMatch>
  205: 
  206: <LocationMatch "^/(res|\~).*\.(xml|html|htm|xhtml|xhtm)$">
  207: SetHandler perl-script
  208: PerlHandler Apache::lonxml
  209: </LocationMatch>
  210: 
  211: <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
  212: SetHandler perl-script
  213: PerlHandler Apache::lonhomework
  214: </LocationMatch>
  215: 
  216: <LocationMatch "^/\~.*\.sty$">
  217: SetHandler perl-script
  218: PerlHandler Apache::lonxml
  219: </LocationMatch>
  220: 
  221: <LocationMatch "^/adm/wrapper/">
  222: PerlAccessHandler       Apache::lonacc
  223: SetHandler perl-script
  224: PerlHandler Apache::lonwrapper
  225: ErrorDocument     403 /adm/login
  226: ErrorDocument	  500 /adm/errorhandler
  227: </LocationMatch>
  228: 
  229: # -------------------------------------------------------------- Admin Programs
  230: 
  231: <Location /adm/randomlabel.png>
  232: PerlAccessHandler       Apache::lonacc
  233: SetHandler perl-script
  234: PerlHandler Apache::randomlylabel
  235: ErrorDocument     403 /adm/login
  236: ErrorDocument	  500 /adm/errorhandler
  237: </Location>
  238: 
  239: <Location /adm/statistics>
  240: PerlAccessHandler       Apache::lonacc
  241: SetHandler perl-script
  242: PerlHandler Apache::lonstatistics
  243: ErrorDocument     403 /adm/login
  244: ErrorDocument     413 /adm/overloaded.txt
  245: ErrorDocument	  500 /adm/errorhandler
  246: </Location>
  247: 
  248: <Location /adm/roles>
  249: PerlAccessHandler       Apache::lonacc
  250: SetHandler perl-script
  251: PerlHandler Apache::lonroles
  252: ErrorDocument     403 /adm/login
  253: ErrorDocument	  500 /adm/errorhandler
  254: </Location>
  255: 
  256: <Location /adm/menu>
  257: PerlAccessHandler       Apache::lonacc
  258: SetHandler perl-script
  259: PerlHandler Apache::lonmenu
  260: ErrorDocument     403 /adm/login
  261: ErrorDocument	  500 /adm/errorhandler
  262: </Location>
  263: 
  264: <Location /adm/remote>
  265: PerlAccessHandler       Apache::lonacc
  266: SetHandler perl-script
  267: PerlHandler Apache::lonremote
  268: ErrorDocument     403 /adm/login
  269: ErrorDocument	  500 /adm/errorhandler
  270: </Location>
  271: 
  272: <Location /adm/pickstudent>
  273: PerlAccessHandler       Apache::lonacc
  274: SetHandler perl-script
  275: PerlHandler Apache::lonpickstudent
  276: ErrorDocument     403 /adm/login
  277: ErrorDocument	  500 /adm/errorhandler
  278: </Location>
  279: 
  280: <Location /adm/pickcourse>
  281: PerlAccessHandler       Apache::lonacc
  282: SetHandler perl-script
  283: PerlHandler Apache::lonpickcourse
  284: ErrorDocument     403 /adm/login
  285: ErrorDocument	  500 /adm/errorhandler
  286: </Location>
  287: 
  288: <Location /adm/login>
  289: SetHandler perl-script
  290: PerlHandler Apache::lonlogin
  291: </Location>
  292: 
  293: <Location /adm/logout>
  294: PerlAccessHandler       Apache::lonacc
  295: SetHandler perl-script
  296: PerlHandler Apache::lonlogout
  297: ErrorDocument     403 /adm/login
  298: </Location>
  299: 
  300: <Location /adm/authenticate>
  301: SetHandler perl-script
  302: PerlHandler Apache::lonauth
  303: </Location>
  304: 
  305: <Location /adm/annotations>
  306: PerlAccessHandler       Apache::lonacc
  307: SetHandler perl-script
  308: PerlHandler Apache::admannotations
  309: ErrorDocument     403 /adm/login
  310: ErrorDocument	  500 /adm/errorhandler
  311: </Location>
  312: 
  313: <Location /adm/bookmarks>
  314: PerlAccessHandler       Apache::lonacc
  315: SetHandler perl-script
  316: PerlHandler Apache::admbookmarks
  317: ErrorDocument     403 /adm/login
  318: ErrorDocument	  500 /adm/errorhandler
  319: </Location>
  320: 
  321: <Location /adm/flip>
  322: PerlAccessHandler       Apache::lonacc
  323: SetHandler perl-script
  324: PerlHandler Apache::lonpageflip
  325: PerlCleanupHandler Apache::lonpageflip::cleanup
  326: ErrorDocument     406 /adm/roles
  327: ErrorDocument     403 /adm/login
  328: ErrorDocument	  500 /adm/errorhandler
  329: </Location>
  330: 
  331: <Location /adm/ambiguous>
  332: PerlAccessHandler       Apache::lonacc
  333: SetHandler perl-script
  334: PerlHandler Apache::lonambiguous
  335: PerlCleanupHandler Apache::lonambiguous::cleanup
  336: ErrorDocument     403 /adm/login
  337: ErrorDocument	  500 /adm/errorhandler
  338: </Location>
  339: 
  340: <Location /adm/email>
  341: PerlAccessHandler       Apache::lonacc
  342: SetHandler perl-script
  343: PerlHandler Apache::lonmsg
  344: ErrorDocument     403 /adm/login
  345: ErrorDocument	  500 /adm/errorhandler
  346: </Location>
  347: 
  348: <Location /adm/parmset>
  349: PerlAccessHandler       Apache::lonacc
  350: SetHandler perl-script
  351: PerlHandler Apache::lonparmset
  352: ErrorDocument     403 /adm/login
  353: ErrorDocument     406 /adm/roles
  354: ErrorDocument	  500 /adm/errorhandler
  355: </Location>
  356: 
  357: <Location /adm/wizard>
  358: PerlAccessHandler       Apache::lonacc
  359: SetHandler perl-script
  360: PerlHandler Apache::lonwizard
  361: ErrorDocument     403 /adm/login
  362: ErrorDocument     406 /adm/roles
  363: ErrorDocument	  500 /adm/errorhandler
  364: </Location>
  365: 
  366: <Location /adm/grades>
  367: PerlAccessHandler       Apache::lonacc
  368: SetHandler perl-script
  369: PerlHandler Apache::grades
  370: ErrorDocument     403 /adm/login
  371: ErrorDocument     406 /adm/roles
  372: ErrorDocument	  500 /adm/errorhandler
  373: </Location>
  374: 
  375: <Location /adm/createcourse>
  376: PerlAccessHandler       Apache::lonacc
  377: SetHandler perl-script
  378: PerlHandler Apache::loncreatecourse
  379: ErrorDocument     403 /adm/login
  380: ErrorDocument     406 /adm/roles
  381: ErrorDocument	  500 /adm/errorhandler
  382: </Location>
  383: 
  384: <Location /adm/createuser>
  385: PerlAccessHandler       Apache::lonacc
  386: SetHandler perl-script
  387: PerlHandler Apache::loncreateuser
  388: ErrorDocument     403 /adm/login
  389: ErrorDocument     406 /adm/roles
  390: ErrorDocument	  500 /adm/errorhandler
  391: </Location>
  392: 
  393: <Location /adm/publish>
  394: PerlAccessHandler       Apache::lonacc
  395: SetHandler perl-script
  396: PerlHandler Apache::lonpublisher
  397: ErrorDocument     403 /adm/login
  398: ErrorDocument     404 /adm/notfound.html
  399: ErrorDocument     406 /adm/unauthorized
  400: ErrorDocument	  500 /adm/errorhandler
  401: </Location>
  402: 
  403: <LocationMatch "^/\~.*/$">
  404: PerlAccessHandler       Apache::loncacc
  405: SetHandler perl-script
  406: PerlHandler Apache::lonpubdir
  407: ErrorDocument     403 /adm/login
  408: ErrorDocument     404 /adm/notfound.html
  409: ErrorDocument     406 /adm/unauthorized
  410: ErrorDocument	  500 /adm/errorhandler
  411: </LocationMatch>
  412: 
  413: <Location /adm/pubdir>
  414: PerlAccessHandler       Apache::lonacc
  415: SetHandler perl-script
  416: PerlHandler Apache::lonpubdir
  417: ErrorDocument     403 /adm/login
  418: ErrorDocument     404 /adm/notfound.html
  419: ErrorDocument     406 /adm/unauthorized
  420: ErrorDocument	  500 /adm/errorhandler
  421: </Location>
  422: 
  423: <Location /adm/unauthorized>
  424: PerlAccessHandler       Apache::lonacc
  425: SetHandler perl-script
  426: PerlHandler Apache::lonunauthorized
  427: ErrorDocument     403 /adm/login
  428: ErrorDocument     404 /adm/notfound.html
  429: ErrorDocument	  500 /adm/errorhandler
  430: </Location>
  431: 
  432: <Location /adm/retrieve>
  433: PerlAccessHandler       Apache::lonacc
  434: SetHandler perl-script
  435: PerlHandler Apache::lonretrieve
  436: ErrorDocument     403 /adm/login
  437: ErrorDocument     404 /adm/notfound.html
  438: ErrorDocument     406 /adm/unauthorized
  439: ErrorDocument	  500 /adm/errorhandler
  440: </Location>
  441: 
  442: <Location /adm/cfile>
  443: PerlAccessHandler       Apache::lonacc
  444: SetHandler perl-script
  445: PerlHandler Apache::loncfile
  446: ErrorDocument     403 /adm/login
  447: ErrorDocument     404 /adm/notfound.html
  448: ErrorDocument     406 /adm/unauthorized
  449: ErrorDocument	  500 /adm/errorhandler
  450: </Location>
  451: 
  452: <Location /adm/diff>
  453: PerlAccessHandler       Apache::lonacc
  454: SetHandler perl-script
  455: PerlHandler Apache::londiff
  456: ErrorDocument     403 /adm/login
  457: ErrorDocument     404 /adm/notfound.html
  458: ErrorDocument     406 /adm/unauthorized
  459: ErrorDocument	  500 /adm/errorhandler
  460: </Location>
  461: 
  462: <Location /adm/upload>
  463: PerlAccessHandler       Apache::lonacc
  464: SetHandler perl-script
  465: PerlHandler Apache::lonupload
  466: ErrorDocument     403 /adm/login
  467: ErrorDocument     404 /adm/notfound.html
  468: ErrorDocument     406 /adm/unauthorized
  469: ErrorDocument	  500 /adm/errorhandler
  470: </Location>
  471: 
  472: <Location /adm/assesscalc>
  473: PerlAccessHandler       Apache::lonacc
  474: SetHandler perl-script
  475: PerlHandler Apache::lonspreadsheet
  476: ErrorDocument     403 /adm/login
  477: ErrorDocument     406 /adm/roles
  478: ErrorDocument     413 /adm/overloaded.txt
  479: ErrorDocument	  500 /adm/errorhandler
  480: </Location>
  481: 
  482: <Location /adm/studentcalc>
  483: PerlAccessHandler       Apache::lonacc
  484: SetHandler perl-script
  485: PerlHandler Apache::lonspreadsheet
  486: ErrorDocument     403 /adm/login
  487: ErrorDocument     406 /adm/roles
  488: ErrorDocument     413 /adm/overloaded.txt
  489: ErrorDocument	  500 /adm/errorhandler
  490: </Location>
  491: 
  492: <Location /adm/classcalc>
  493: PerlAccessHandler       Apache::lonacc
  494: SetHandler perl-script
  495: PerlHandler Apache::lonspreadsheet
  496: ErrorDocument     403 /adm/login
  497: ErrorDocument     406 /adm/roles
  498: ErrorDocument     413 /adm/overloaded.txt
  499: ErrorDocument	  500 /adm/errorhandler
  500: </Location>
  501: 
  502: <Location /adm/dropadd>
  503: PerlAccessHandler       Apache::lonacc
  504: SetHandler perl-script
  505: PerlHandler Apache::londropadd
  506: ErrorDocument     403 /adm/login
  507: ErrorDocument     406 /adm/roles
  508: ErrorDocument	  500 /adm/errorhandler
  509: </Location>
  510: 
  511: <Location /adm/managekeys>
  512: PerlAccessHandler       Apache::lonacc
  513: SetHandler perl-script
  514: PerlHandler Apache::lonmanagekeys
  515: ErrorDocument     403 /adm/login
  516: ErrorDocument     406 /adm/roles
  517: ErrorDocument	  500 /adm/errorhandler
  518: </Location>
  519: 
  520: <Location /adm/printout>
  521: PerlAccessHandler       Apache::lonacc
  522: SetHandler perl-script
  523: PerlHandler Apache::lonprintout
  524: ErrorDocument     403 /adm/login
  525: ErrorDocument     413 /adm/overloaded.txt
  526: ErrorDocument	  500 /adm/errorhandler
  527: </Location>
  528: 
  529: <Location /adm/feedback>
  530: PerlAccessHandler       Apache::lonacc
  531: SetHandler perl-script
  532: PerlHandler Apache::lonfeedback
  533: ErrorDocument     403 /adm/login
  534: ErrorDocument	  500 /adm/errorhandler
  535: </Location>
  536: 
  537: <Location /adm/coursedocs>
  538: PerlAccessHandler       Apache::lonacc
  539: SetHandler perl-script
  540: PerlCleanupHandler Apache::londocs::untiehash
  541: PerlHandler Apache::londocs
  542: ErrorDocument     403 /adm/login
  543: ErrorDocument	  500 /adm/errorhandler
  544: </Location>
  545: 
  546: <Location /adm/announcements>
  547: PerlAccessHandler       Apache::lonacc
  548: SetHandler perl-script
  549: PerlHandler Apache::lonannounce
  550: ErrorDocument     403 /adm/login
  551: ErrorDocument	  500 /adm/errorhandler
  552: </Location>
  553: 
  554: <Location /adm/chat>
  555: PerlAccessHandler       Apache::lonacc
  556: SetHandler perl-script
  557: PerlHandler Apache::lonchat
  558: ErrorDocument	  500 /adm/errorhandler
  559: </Location>
  560: 
  561: <Location /adm/chatfetch>
  562: PerlAccessHandler       Apache::lonacc
  563: SetHandler perl-script
  564: PerlHandler Apache::lonchatfetch
  565: ErrorDocument     413 /adm/overloaded.txt
  566: ErrorDocument	  500 /adm/errorhandler
  567: </Location>
  568: 
  569: <Location /adm/evaluate>
  570: PerlAccessHandler       Apache::lonacc
  571: SetHandler perl-script
  572: PerlHandler Apache::lonevaluate
  573: ErrorDocument     403 /adm/login
  574: ErrorDocument	  500 /adm/errorhandler
  575: </Location>
  576: 
  577: <Location /adm/preferences>
  578: PerlAccessHandler       Apache::lonacc
  579: SetHandler perl-script
  580: PerlHandler Apache::lonpreferences
  581: ErrorDocument     403 /adm/login
  582: ErrorDocument	  500 /adm/errorhandler
  583: </Location>
  584: 
  585: <Location /adm/assignments>
  586: PerlAccessHandler       Apache::lonacc
  587: SetHandler perl-script
  588: PerlHandler Apache::lonassignments
  589: ErrorDocument     403 /adm/login
  590: ErrorDocument     406 /adm/roles
  591: ErrorDocument	  500 /adm/errorhandler
  592: </Location>
  593: 
  594: <Location /adm/communicate>
  595: PerlAccessHandler       Apache::lonacc
  596: SetHandler perl-script
  597: PerlHandler Apache::loncommunicate
  598: ErrorDocument     403 /adm/login
  599: ErrorDocument	  500 /adm/errorhandler
  600: </Location>
  601: 
  602: <Location /adm/searchcat>
  603: PerlAccessHandler       Apache::lonacc
  604: SetHandler perl-script
  605: PerlHandler Apache::lonsearchcat
  606: PerlCleanupHandler Apache::lonsearchcat::cleanup
  607: ErrorDocument     403 /adm/login
  608: ErrorDocument     413 /adm/overloaded.txt
  609: ErrorDocument	  500 /adm/errorhandler
  610: </Location>
  611: 
  612: <Location /adm/navmaps>
  613: PerlAccessHandler       Apache::lonacc
  614: SetHandler perl-script
  615: PerlHandler Apache::lonnavmaps
  616: ErrorDocument     403 /adm/login
  617: ErrorDocument     406 /adm/roles
  618: ErrorDocument	  500 /adm/errorhandler
  619: </Location>
  620: 
  621: <Location /adm/quickgrades>
  622: PerlAccessHandler       Apache::lonacc
  623: SetHandler perl-script
  624: PerlHandler Apache::lonquickgrades
  625: ErrorDocument     403 /adm/login
  626: ErrorDocument     406 /adm/roles
  627: ErrorDocument     500 /adm/errorhandler
  628: </Location>
  629: 
  630: <Location /adm/groupsort>
  631: PerlAccessHandler	Apache::lonacc
  632: SetHandler perl-script
  633: PerlHandler Apache::groupsort
  634: PerlCleanupHandler Apache::groupsort::cleanup
  635: ErrorDocument     403 /adm/login
  636: ErrorDocument	  500 /adm/errorhandler
  637: </Location>
  638: 
  639: <Location /adm/errorhandler>
  640: SetHandler perl-script
  641: PerlHandler Apache::lonerrorhandler
  642: </Location>
  643: 
  644: <LocationMatch "^/adm/help/.*\.hlp$">
  645: SetHandler perl-script
  646: PerlHandler Apache::lonhelp
  647: </LocationMatch>
  648: 
  649: # ------------------------------------------------- Backdoor Adm Tests/Programs
  650: 
  651: <Location /cgi-bin/loncron.pl>
  652: AuthName "LON-CAPA Network Administration"
  653: AuthType Basic
  654: AuthUserFile /home/httpd/lonTabs/htpasswd
  655: require user lonadm
  656: </Location>
  657: 
  658: <Location /cgi-bin/userstatus.pl>
  659: AuthName "LON-CAPA Network Administration"
  660: AuthType Basic
  661: AuthUserFile /home/httpd/lonTabs/htpasswd
  662: require user lonadm
  663: </Location>
  664: 
  665: <Location /cgi-bin/lonversions.pl>
  666: AuthName "LON-CAPA Network Administration"
  667: AuthType Basic
  668: AuthUserFile /home/httpd/lonTabs/htpasswd
  669: require user lonadm
  670: </Location>
  671: 
  672: <Location /cgi-bin/clusterstatus.pl>
  673: AuthName "LON-CAPA Network Administration"
  674: AuthType Basic
  675: AuthUserFile /home/httpd/lonTabs/htpasswd
  676: require user lonadm
  677: </Location>
  678: 
  679: <Location /cgi-bin/metadata_keywords.pl>
  680: AuthName "LON-CAPA Network Administration"
  681: AuthType Basic
  682: AuthUserFile /home/httpd/lonTabs/htpasswd
  683: require user lonadm
  684: </Location>
  685: 
  686: <Location /cgi-bin/metadata_harvest.pl>
  687: AuthName "harvest"
  688: AuthType Basic
  689: AuthUserFile /home/httpd/lonTabs/htpasswd
  690: require user  reaper
  691: </Location>
  692: 
  693: <Location /adm/test>
  694: AuthName "LON-CAPA Network Administration"
  695: AuthType Basic
  696: AuthUserFile /home/httpd/lonTabs/htpasswd
  697: require user lonadm
  698: SetHandler perl-script
  699: PerlAccessHandler Apache::lonacc
  700: PerlHandler Apache::lontest
  701: </Location>
  702: 
  703: # ------------------------------------------------------- Shutting down a child
  704: 
  705: PerlChildExitHandler Apache::lonnet::goodbye
  706: 
  707: #
  708: # LON-CAPA Section (extensions to access.conf permission configuration)
  709: #
  710: # =========================================================== Directory Options
  711: 
  712: # Start out with "no"
  713: 
  714: <Directory />
  715: Options None
  716: AllowOverride None
  717: </Directory>
  718: 
  719: # Yes to symbolic links and server-side includes
  720: 
  721: <Directory /home/httpd/html>
  722: Options Includes FollowSymLinks
  723: AllowOverride None
  724: order allow,deny
  725: allow from all
  726: </Directory>
  727: 
  728: # If it is in cgi-bin, then it can be executed as a CGI script.
  729: 
  730: <Directory /home/httpd/cgi-bin>
  731: AllowOverride None
  732: Options ExecCGI
  733: </Directory>
  734: 
  735: # ============================================================= Access Handlers
  736: 
  737: # ------------------------------------------------- Allow server-status reports
  738: <Location /server-status>
  739: SetHandler server-status
  740: AuthName "LON-CAPA Network Administration"
  741: AuthType Basic
  742: AuthUserFile /home/httpd/lonTabs/htpasswd
  743: require user lonadm
  744: </Location>
  745: 
  746: # ------------------------ Allow LON-CAPA "low-level" connection status reports
  747: <Location /lon-status>
  748: AuthName "LON-CAPA Network Administration"
  749: AuthType Basic
  750: AuthUserFile /home/httpd/lonTabs/htpasswd
  751: require user lonadm
  752: </Location>
  753: 
  754: # ------------------- Allow access to local system documentation from localhost
  755: Alias /doc /usr/doc
  756: <Directory /usr/doc>
  757: order deny,allow
  758: deny from all
  759: allow from localhost
  760: Options Indexes FollowSymLinks
  761: </Directory>
  762: 
  763: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
  764: # ====================================== Internal Settings / Perl Configuration
  765: 
  766: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
  767: PerlSetVar       lonTabDir    /home/httpd/lonTabs
  768: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
  769: PerlSetVar       lonIconsURL  /adm/lonIcons
  770: PerlSetVar       londPort     5663
  771: PerlSetVar       lonSysEMail  korte@lite.msu.edu
  772: PerlSetVar       lonDaemons   /home/httpd/perl
  773: PerlSetVar       lonSockDir   /home/httpd/sockets
  774: PerlSetVar       lonDocRoot   /home/httpd/html
  775: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
  776: PerlSetVar       lonBrowsDet  netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:9999:9999&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999:1&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1
  777: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
  778: PerlSetVar       lonScansDir  /home/httpd/scantron
  779: PerlSetVar       lonScriptTimeout 10
  780: # -----------------------------------------------------------------------------
  781: # NOTE: lonSqlAccess key is the password for the MySQL user
  782: # www@localhost.  This value must always be "localhostkey".
  783: # The only security risk occurs when somebody logs in as 'www' on your system
  784: # (in which case you have much bigger problems than whether or not they
  785: # can access the non-authoritative loncapa database on your machine).
  786: 
  787: PerlSetVar       lonSqlAccess   localhostkey
  788: 
  789: # -----------------------------------------------------------------------------
  790: # lonttpdPort is the port used by the lightweight graphics httpd server
  791: # not the main Apache server
  792: PerlSetVar       lonhttpdPort  8080
  793: 
  794: 
  795: 
  796: # ====================================== Include machine-specific configuration
  797: 
  798: Include conf/loncapa.conf
  799: 
  800: # ================================================== Initiate mod_perl starting
  801: 
  802: PerlRequire      conf/startup.pl
  803: <IfDefine !MODPERL2>
  804: PerlFreshRestart On
  805: </IfDefine>

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