Annotation of loncom/loncapa_apache.conf, revision 1.59.2.1

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

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