Annotation of loncom/loncapa_apache.conf, revision 1.64

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

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