Annotation of loncom/loncapa_apache.conf, revision 1.67

1.1       harris41    1: ##
                      2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
                      3: ##
1.67    ! raeburn     4: ## $Id: loncapa_apache.conf,v 1.66 2003/12/10 00:32:55 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: 
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
1.66      www       227: ErrorDocument     403 /adm/login
                    228: ErrorDocument	  500 /adm/errorhandler
                    229: </LocationMatch>
                    230: 
                    231: <LocationMatch "^/adm/localize/">
                    232: PerlAccessHandler       Apache::lonacc
                    233: SetHandler perl-script
                    234: PerlHandler Apache::lonlocal
1.1       harris41  235: ErrorDocument     403 /adm/login
                    236: ErrorDocument	  500 /adm/errorhandler
                    237: </LocationMatch>
                    238: 
                    239: # -------------------------------------------------------------- Admin Programs
1.24      albertel  240: 
                    241: <Location /adm/randomlabel.png>
                    242: PerlAccessHandler       Apache::lonacc
                    243: SetHandler perl-script
                    244: PerlHandler Apache::randomlylabel
                    245: ErrorDocument     403 /adm/login
                    246: ErrorDocument	  500 /adm/errorhandler
                    247: </Location>
1.1       harris41  248: 
                    249: <Location /adm/statistics>
                    250: PerlAccessHandler       Apache::lonacc
                    251: SetHandler perl-script
                    252: PerlHandler Apache::lonstatistics
                    253: ErrorDocument     403 /adm/login
1.20      www       254: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  255: ErrorDocument	  500 /adm/errorhandler
                    256: </Location>
                    257: 
                    258: <Location /adm/roles>
                    259: PerlAccessHandler       Apache::lonacc
                    260: SetHandler perl-script
                    261: PerlHandler Apache::lonroles
1.33      www       262: ErrorDocument     403 /adm/login
                    263: ErrorDocument	  500 /adm/errorhandler
                    264: </Location>
                    265: 
                    266: <Location /adm/menu>
                    267: PerlAccessHandler       Apache::lonacc
                    268: SetHandler perl-script
                    269: PerlHandler Apache::lonmenu
1.42      www       270: ErrorDocument     403 /adm/login
                    271: ErrorDocument	  500 /adm/errorhandler
                    272: </Location>
                    273: 
                    274: <Location /adm/remote>
                    275: PerlAccessHandler       Apache::lonacc
                    276: SetHandler perl-script
                    277: PerlHandler Apache::lonremote
1.27      www       278: ErrorDocument     403 /adm/login
                    279: ErrorDocument	  500 /adm/errorhandler
                    280: </Location>
                    281: 
                    282: <Location /adm/pickstudent>
                    283: PerlAccessHandler       Apache::lonacc
                    284: SetHandler perl-script
                    285: PerlHandler Apache::lonpickstudent
1.40      www       286: ErrorDocument     403 /adm/login
                    287: ErrorDocument	  500 /adm/errorhandler
                    288: </Location>
                    289: 
                    290: <Location /adm/pickcourse>
                    291: PerlAccessHandler       Apache::lonacc
                    292: SetHandler perl-script
                    293: PerlHandler Apache::lonpickcourse
1.1       harris41  294: ErrorDocument     403 /adm/login
                    295: ErrorDocument	  500 /adm/errorhandler
                    296: </Location>
                    297: 
                    298: <Location /adm/login>
                    299: SetHandler perl-script
                    300: PerlHandler Apache::lonlogin
                    301: </Location>
                    302: 
                    303: <Location /adm/logout>
                    304: PerlAccessHandler       Apache::lonacc
                    305: SetHandler perl-script
                    306: PerlHandler Apache::lonlogout
                    307: ErrorDocument     403 /adm/login
                    308: </Location>
                    309: 
                    310: <Location /adm/authenticate>
                    311: SetHandler perl-script
                    312: PerlHandler Apache::lonauth
                    313: </Location>
                    314: 
                    315: <Location /adm/annotations>
                    316: PerlAccessHandler       Apache::lonacc
                    317: SetHandler perl-script
                    318: PerlHandler Apache::admannotations
                    319: ErrorDocument     403 /adm/login
                    320: ErrorDocument	  500 /adm/errorhandler
                    321: </Location>
                    322: 
                    323: <Location /adm/bookmarks>
                    324: PerlAccessHandler       Apache::lonacc
                    325: SetHandler perl-script
                    326: PerlHandler Apache::admbookmarks
                    327: ErrorDocument     403 /adm/login
                    328: ErrorDocument	  500 /adm/errorhandler
                    329: </Location>
                    330: 
                    331: <Location /adm/flip>
                    332: PerlAccessHandler       Apache::lonacc
                    333: SetHandler perl-script
                    334: PerlHandler Apache::lonpageflip
1.30      www       335: PerlCleanupHandler Apache::lonpageflip::cleanup
1.1       harris41  336: ErrorDocument     406 /adm/roles
                    337: ErrorDocument     403 /adm/login
                    338: ErrorDocument	  500 /adm/errorhandler
                    339: </Location>
                    340: 
                    341: <Location /adm/ambiguous>
                    342: PerlAccessHandler       Apache::lonacc
                    343: SetHandler perl-script
                    344: PerlHandler Apache::lonambiguous
1.30      www       345: PerlCleanupHandler Apache::lonambiguous::cleanup
1.1       harris41  346: ErrorDocument     403 /adm/login
                    347: ErrorDocument	  500 /adm/errorhandler
                    348: </Location>
                    349: 
                    350: <Location /adm/email>
                    351: PerlAccessHandler       Apache::lonacc
                    352: SetHandler perl-script
                    353: PerlHandler Apache::lonmsg
                    354: ErrorDocument     403 /adm/login
                    355: ErrorDocument	  500 /adm/errorhandler
                    356: </Location>
                    357: 
                    358: <Location /adm/parmset>
                    359: PerlAccessHandler       Apache::lonacc
                    360: SetHandler perl-script
                    361: PerlHandler Apache::lonparmset
1.31      bowersj2  362: ErrorDocument     403 /adm/login
                    363: ErrorDocument     406 /adm/roles
                    364: ErrorDocument	  500 /adm/errorhandler
                    365: </Location>
                    366: 
                    367: <Location /adm/wizard>
                    368: PerlAccessHandler       Apache::lonacc
                    369: SetHandler perl-script
                    370: PerlHandler Apache::lonwizard
1.1       harris41  371: ErrorDocument     403 /adm/login
                    372: ErrorDocument     406 /adm/roles
                    373: ErrorDocument	  500 /adm/errorhandler
                    374: </Location>
                    375: 
                    376: <Location /adm/grades>
                    377: PerlAccessHandler       Apache::lonacc
                    378: SetHandler perl-script
                    379: PerlHandler Apache::grades
                    380: ErrorDocument     403 /adm/login
                    381: ErrorDocument     406 /adm/roles
                    382: ErrorDocument	  500 /adm/errorhandler
                    383: </Location>
                    384: 
                    385: <Location /adm/createcourse>
                    386: PerlAccessHandler       Apache::lonacc
                    387: SetHandler perl-script
                    388: PerlHandler Apache::loncreatecourse
                    389: ErrorDocument     403 /adm/login
                    390: ErrorDocument     406 /adm/roles
                    391: ErrorDocument	  500 /adm/errorhandler
1.67    ! raeburn   392: </Location>
        !           393: 
        !           394: <Location /adm/modifycourse>
        !           395: PerlAccessHandler       Apache::lonacc
        !           396: SetHandler perl-script
        !           397: PerlHandler Apache::lonmodifycourse
        !           398: ErrorDocument     403 /adm/login
        !           399: ErrorDocument     406 /adm/roles
        !           400: ErrorDocument     500 /adm/errorhandler
1.1       harris41  401: </Location>
                    402: 
                    403: <Location /adm/createuser>
                    404: PerlAccessHandler       Apache::lonacc
                    405: SetHandler perl-script
                    406: PerlHandler Apache::loncreateuser
                    407: ErrorDocument     403 /adm/login
                    408: ErrorDocument     406 /adm/roles
                    409: ErrorDocument	  500 /adm/errorhandler
                    410: </Location>
                    411: 
                    412: <Location /adm/publish>
                    413: PerlAccessHandler       Apache::lonacc
                    414: SetHandler perl-script
                    415: PerlHandler Apache::lonpublisher
                    416: ErrorDocument     403 /adm/login
                    417: ErrorDocument     404 /adm/notfound.html
1.18      www       418: ErrorDocument     406 /adm/unauthorized
1.1       harris41  419: ErrorDocument	  500 /adm/errorhandler
                    420: </Location>
                    421: 
1.64      albertel  422: <LocationMatch "^/+\~.*/$">
1.1       harris41  423: PerlAccessHandler       Apache::loncacc
                    424: SetHandler perl-script
                    425: PerlHandler Apache::lonpubdir
                    426: ErrorDocument     403 /adm/login
                    427: ErrorDocument     404 /adm/notfound.html
1.18      www       428: ErrorDocument     406 /adm/unauthorized
1.1       harris41  429: ErrorDocument	  500 /adm/errorhandler
                    430: </LocationMatch>
                    431: 
                    432: <Location /adm/pubdir>
                    433: PerlAccessHandler       Apache::lonacc
                    434: SetHandler perl-script
                    435: PerlHandler Apache::lonpubdir
                    436: ErrorDocument     403 /adm/login
                    437: ErrorDocument     404 /adm/notfound.html
1.18      www       438: ErrorDocument     406 /adm/unauthorized
                    439: ErrorDocument	  500 /adm/errorhandler
                    440: </Location>
                    441: 
                    442: <Location /adm/unauthorized>
                    443: PerlAccessHandler       Apache::lonacc
                    444: SetHandler perl-script
                    445: PerlHandler Apache::lonunauthorized
                    446: ErrorDocument     403 /adm/login
                    447: ErrorDocument     404 /adm/notfound.html
1.1       harris41  448: ErrorDocument	  500 /adm/errorhandler
                    449: </Location>
                    450: 
                    451: <Location /adm/retrieve>
                    452: PerlAccessHandler       Apache::lonacc
                    453: SetHandler perl-script
                    454: PerlHandler Apache::lonretrieve
                    455: ErrorDocument     403 /adm/login
                    456: ErrorDocument     404 /adm/notfound.html
1.18      www       457: ErrorDocument     406 /adm/unauthorized
1.1       harris41  458: ErrorDocument	  500 /adm/errorhandler
                    459: </Location>
                    460: 
                    461: <Location /adm/cfile>
                    462: PerlAccessHandler       Apache::lonacc
                    463: SetHandler perl-script
                    464: PerlHandler Apache::loncfile
                    465: ErrorDocument     403 /adm/login
                    466: ErrorDocument     404 /adm/notfound.html
1.18      www       467: ErrorDocument     406 /adm/unauthorized
1.1       harris41  468: ErrorDocument	  500 /adm/errorhandler
                    469: </Location>
                    470: 
                    471: <Location /adm/diff>
                    472: PerlAccessHandler       Apache::lonacc
                    473: SetHandler perl-script
                    474: PerlHandler Apache::londiff
                    475: ErrorDocument     403 /adm/login
                    476: ErrorDocument     404 /adm/notfound.html
1.18      www       477: ErrorDocument     406 /adm/unauthorized
1.1       harris41  478: ErrorDocument	  500 /adm/errorhandler
                    479: </Location>
                    480: 
                    481: <Location /adm/upload>
                    482: PerlAccessHandler       Apache::lonacc
                    483: SetHandler perl-script
                    484: PerlHandler Apache::lonupload
                    485: ErrorDocument     403 /adm/login
                    486: ErrorDocument     404 /adm/notfound.html
1.18      www       487: ErrorDocument     406 /adm/unauthorized
1.1       harris41  488: ErrorDocument	  500 /adm/errorhandler
                    489: </Location>
                    490: 
                    491: <Location /adm/assesscalc>
                    492: PerlAccessHandler       Apache::lonacc
                    493: SetHandler perl-script
                    494: PerlHandler Apache::lonspreadsheet
                    495: ErrorDocument     403 /adm/login
                    496: ErrorDocument     406 /adm/roles
1.20      www       497: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  498: ErrorDocument	  500 /adm/errorhandler
                    499: </Location>
                    500: 
                    501: <Location /adm/studentcalc>
                    502: PerlAccessHandler       Apache::lonacc
                    503: SetHandler perl-script
                    504: PerlHandler Apache::lonspreadsheet
                    505: ErrorDocument     403 /adm/login
                    506: ErrorDocument     406 /adm/roles
1.20      www       507: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  508: ErrorDocument	  500 /adm/errorhandler
                    509: </Location>
                    510: 
                    511: <Location /adm/classcalc>
                    512: PerlAccessHandler       Apache::lonacc
                    513: SetHandler perl-script
                    514: PerlHandler Apache::lonspreadsheet
                    515: ErrorDocument     403 /adm/login
                    516: ErrorDocument     406 /adm/roles
1.20      www       517: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  518: ErrorDocument	  500 /adm/errorhandler
                    519: </Location>
                    520: 
                    521: <Location /adm/dropadd>
                    522: PerlAccessHandler       Apache::lonacc
                    523: SetHandler perl-script
                    524: PerlHandler Apache::londropadd
1.44      www       525: ErrorDocument     403 /adm/login
                    526: ErrorDocument     406 /adm/roles
                    527: ErrorDocument	  500 /adm/errorhandler
1.65      raeburn   528: </Location>
                    529: 
                    530: <Location /adm/populate>
                    531: PerlAccessHandler       Apache::lonacc
                    532: SetHandler perl-script
                    533: PerlHandler Apache::lonpopulate
                    534: ErrorDocument     403 /adm/login
                    535: ErrorDocument     406 /adm/roles
                    536: ErrorDocument     500 /adm/errorhandler
1.44      www       537: </Location>
                    538: 
                    539: <Location /adm/managekeys>
                    540: PerlAccessHandler       Apache::lonacc
                    541: SetHandler perl-script
                    542: PerlHandler Apache::lonmanagekeys
1.1       harris41  543: ErrorDocument     403 /adm/login
                    544: ErrorDocument     406 /adm/roles
                    545: ErrorDocument	  500 /adm/errorhandler
                    546: </Location>
                    547: 
                    548: <Location /adm/printout>
                    549: PerlAccessHandler       Apache::lonacc
                    550: SetHandler perl-script
                    551: PerlHandler Apache::lonprintout
                    552: ErrorDocument     403 /adm/login
1.20      www       553: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  554: ErrorDocument	  500 /adm/errorhandler
                    555: </Location>
                    556: 
                    557: <Location /adm/feedback>
                    558: PerlAccessHandler       Apache::lonacc
                    559: SetHandler perl-script
                    560: PerlHandler Apache::lonfeedback
1.10      www       561: ErrorDocument     403 /adm/login
                    562: ErrorDocument	  500 /adm/errorhandler
                    563: </Location>
                    564: 
                    565: <Location /adm/coursedocs>
                    566: PerlAccessHandler       Apache::lonacc
                    567: SetHandler perl-script
                    568: PerlHandler Apache::londocs
1.61      albertel  569:  PerlCleanupHandler Apache::londocs::untiehash
1.10      www       570: ErrorDocument     403 /adm/login
                    571: ErrorDocument	  500 /adm/errorhandler
                    572: </Location>
                    573: 
                    574: <Location /adm/announcements>
                    575: PerlAccessHandler       Apache::lonacc
                    576: SetHandler perl-script
                    577: PerlHandler Apache::lonannounce
                    578: ErrorDocument     403 /adm/login
                    579: ErrorDocument	  500 /adm/errorhandler
                    580: </Location>
                    581: 
                    582: <Location /adm/chat>
                    583: PerlAccessHandler       Apache::lonacc
                    584: SetHandler perl-script
                    585: PerlHandler Apache::lonchat
1.13      www       586: ErrorDocument	  500 /adm/errorhandler
                    587: </Location>
                    588: 
                    589: <Location /adm/chatfetch>
                    590: PerlAccessHandler       Apache::lonacc
                    591: SetHandler perl-script
                    592: PerlHandler Apache::lonchatfetch
1.20      www       593: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  594: ErrorDocument	  500 /adm/errorhandler
                    595: </Location>
                    596: 
                    597: <Location /adm/evaluate>
                    598: PerlAccessHandler       Apache::lonacc
                    599: SetHandler perl-script
                    600: PerlHandler Apache::lonevaluate
                    601: ErrorDocument     403 /adm/login
                    602: ErrorDocument	  500 /adm/errorhandler
                    603: </Location>
                    604: 
                    605: <Location /adm/preferences>
                    606: PerlAccessHandler       Apache::lonacc
                    607: SetHandler perl-script
                    608: PerlHandler Apache::lonpreferences
                    609: ErrorDocument     403 /adm/login
                    610: ErrorDocument	  500 /adm/errorhandler
                    611: </Location>
                    612: 
                    613: <Location /adm/assignments>
                    614: PerlAccessHandler       Apache::lonacc
                    615: SetHandler perl-script
                    616: PerlHandler Apache::lonassignments
                    617: ErrorDocument     403 /adm/login
                    618: ErrorDocument     406 /adm/roles
                    619: ErrorDocument	  500 /adm/errorhandler
                    620: </Location>
                    621: 
                    622: <Location /adm/communicate>
                    623: PerlAccessHandler       Apache::lonacc
                    624: SetHandler perl-script
                    625: PerlHandler Apache::loncommunicate
                    626: ErrorDocument     403 /adm/login
                    627: ErrorDocument	  500 /adm/errorhandler
                    628: </Location>
                    629: 
                    630: <Location /adm/searchcat>
                    631: PerlAccessHandler       Apache::lonacc
                    632: SetHandler perl-script
                    633: PerlHandler Apache::lonsearchcat
1.28      www       634: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1       harris41  635: ErrorDocument     403 /adm/login
1.20      www       636: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  637: ErrorDocument	  500 /adm/errorhandler
                    638: </Location>
                    639: 
                    640: <Location /adm/navmaps>
                    641: PerlAccessHandler       Apache::lonacc
                    642: SetHandler perl-script
                    643: PerlHandler Apache::lonnavmaps
                    644: ErrorDocument     403 /adm/login
                    645: ErrorDocument     406 /adm/roles
                    646: ErrorDocument	  500 /adm/errorhandler
1.26      bowersj2  647: </Location>
                    648: 
                    649: <Location /adm/quickgrades>
                    650: PerlAccessHandler       Apache::lonacc
                    651: SetHandler perl-script
                    652: PerlHandler Apache::lonquickgrades
                    653: ErrorDocument     403 /adm/login
                    654: ErrorDocument     406 /adm/roles
                    655: ErrorDocument     500 /adm/errorhandler
1.1       harris41  656: </Location>
                    657: 
                    658: <Location /adm/groupsort>
                    659: PerlAccessHandler	Apache::lonacc
                    660: SetHandler perl-script
                    661: PerlHandler Apache::groupsort
1.29      www       662: PerlCleanupHandler Apache::groupsort::cleanup
1.1       harris41  663: ErrorDocument     403 /adm/login
                    664: ErrorDocument	  500 /adm/errorhandler
                    665: </Location>
                    666: 
                    667: <Location /adm/errorhandler>
                    668: SetHandler perl-script
                    669: PerlHandler Apache::lonerrorhandler
                    670: </Location>
                    671: 
1.7       bowersj2  672: <LocationMatch "^/adm/help/.*\.hlp$">
                    673: SetHandler perl-script
                    674: PerlHandler Apache::lonhelp
                    675: </LocationMatch>
                    676: 
1.1       harris41  677: # ------------------------------------------------- Backdoor Adm Tests/Programs
                    678: 
                    679: <Location /cgi-bin/loncron.pl>
1.37      www       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/userstatus.pl>
1.1       harris41  687: AuthName "LON-CAPA Network Administration"
                    688: AuthType Basic
                    689: AuthUserFile /home/httpd/lonTabs/htpasswd
                    690: require user lonadm
                    691: </Location>
                    692: 
                    693: <Location /cgi-bin/lonversions.pl>
                    694: AuthName "LON-CAPA Network Administration"
                    695: AuthType Basic
                    696: AuthUserFile /home/httpd/lonTabs/htpasswd
                    697: require user lonadm
                    698: </Location>
                    699: 
                    700: <Location /cgi-bin/clusterstatus.pl>
                    701: AuthName "LON-CAPA Network Administration"
                    702: AuthType Basic
                    703: AuthUserFile /home/httpd/lonTabs/htpasswd
                    704: require user lonadm
                    705: </Location>
                    706: 
                    707: <Location /cgi-bin/metadata_keywords.pl>
                    708: AuthName "LON-CAPA Network Administration"
                    709: AuthType Basic
                    710: AuthUserFile /home/httpd/lonTabs/htpasswd
                    711: require user lonadm
1.22      www       712: </Location>
                    713: 
                    714: <Location /cgi-bin/metadata_harvest.pl>
                    715: AuthName "harvest"
                    716: AuthType Basic
                    717: AuthUserFile /home/httpd/lonTabs/htpasswd
                    718: require user  reaper
1.62      www       719: </Location>
                    720: 
                    721: <Location /cgi-bin/takeoffline.pl>
                    722: AuthName "Offline"
                    723: AuthType Basic
                    724: AuthUserFile /home/httpd/lonTabs/htpasswd
                    725: require user  offline
                    726: </Location>
                    727: 
                    728: <Location /cgi-bin/takeonline.pl>
                    729: AuthName "Offline"
                    730: AuthType Basic
                    731: AuthUserFile /home/httpd/lonTabs/htpasswd
                    732: require user  offline
1.1       harris41  733: </Location>
                    734: 
                    735: <Location /adm/test>
                    736: AuthName "LON-CAPA Network Administration"
                    737: AuthType Basic
                    738: AuthUserFile /home/httpd/lonTabs/htpasswd
                    739: require user lonadm
                    740: SetHandler perl-script
                    741: PerlAccessHandler Apache::lonacc
                    742: PerlHandler Apache::lontest
                    743: </Location>
                    744: 
                    745: # ------------------------------------------------------- Shutting down a child
                    746: 
                    747: PerlChildExitHandler Apache::lonnet::goodbye
                    748: 
                    749: #
                    750: # LON-CAPA Section (extensions to access.conf permission configuration)
                    751: #
                    752: # =========================================================== Directory Options
                    753: 
                    754: # Start out with "no"
                    755: 
                    756: <Directory />
                    757: Options None
                    758: AllowOverride None
                    759: </Directory>
                    760: 
                    761: # Yes to symbolic links and server-side includes
                    762: 
                    763: <Directory /home/httpd/html>
                    764: Options Includes FollowSymLinks
                    765: AllowOverride None
                    766: order allow,deny
                    767: allow from all
                    768: </Directory>
                    769: 
                    770: # If it is in cgi-bin, then it can be executed as a CGI script.
                    771: 
                    772: <Directory /home/httpd/cgi-bin>
                    773: AllowOverride None
                    774: Options ExecCGI
                    775: </Directory>
                    776: 
                    777: # ============================================================= Access Handlers
                    778: 
                    779: # ------------------------------------------------- Allow server-status reports
                    780: <Location /server-status>
                    781: SetHandler server-status
                    782: AuthName "LON-CAPA Network Administration"
                    783: AuthType Basic
                    784: AuthUserFile /home/httpd/lonTabs/htpasswd
                    785: require user lonadm
                    786: </Location>
                    787: 
                    788: # ------------------------ Allow LON-CAPA "low-level" connection status reports
                    789: <Location /lon-status>
                    790: AuthName "LON-CAPA Network Administration"
                    791: AuthType Basic
                    792: AuthUserFile /home/httpd/lonTabs/htpasswd
                    793: require user lonadm
                    794: </Location>
                    795: 
                    796: # ------------------- Allow access to local system documentation from localhost
                    797: Alias /doc /usr/doc
                    798: <Directory /usr/doc>
                    799: order deny,allow
                    800: deny from all
                    801: allow from localhost
                    802: Options Indexes FollowSymLinks
                    803: </Directory>
                    804: 
                    805: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
                    806: # ====================================== Internal Settings / Perl Configuration
                    807: 
1.59      www       808: PerlSetVar	 lonVersion   '<!-- VERSION -->'
1.1       harris41  809: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
                    810: PerlSetVar       lonTabDir    /home/httpd/lonTabs
                    811: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
                    812: PerlSetVar       lonIconsURL  /adm/lonIcons
                    813: PerlSetVar       londPort     5663
                    814: PerlSetVar       lonSysEMail  korte@lite.msu.edu
                    815: PerlSetVar       lonDaemons   /home/httpd/perl
                    816: PerlSetVar       lonSockDir   /home/httpd/sockets
                    817: PerlSetVar       lonDocRoot   /home/httpd/html
                    818: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
1.25      albertel  819: 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       820: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
1.43      albertel  821: PerlSetVar       lonScansDir  /home/httpd/scantron
                    822: PerlSetVar       lonScriptTimeout 10
1.2       harris41  823: # -----------------------------------------------------------------------------
                    824: # NOTE: lonSqlAccess key is the password for the MySQL user
                    825: # www@localhost.  This value must always be "localhostkey".
                    826: # The only security risk occurs when somebody logs in as 'www' on your system
                    827: # (in which case you have much bigger problems than whether or not they
                    828: # can access the non-authoritative loncapa database on your machine).
                    829: 
                    830: PerlSetVar       lonSqlAccess   localhostkey
                    831: 
                    832: # -----------------------------------------------------------------------------
1.36      albertel  833: # lonttpdPort is the port used by the lightweight graphics httpd server
                    834: # not the main Apache server
                    835: PerlSetVar       lonhttpdPort  8080
                    836: 
1.2       harris41  837: 
                    838: 
1.8       harris41  839: # ====================================== Include machine-specific configuration
1.2       harris41  840: 
                    841: Include conf/loncapa.conf
1.61      albertel  842: 
                    843: # ================================================= Include local configuration
                    844: 
                    845: Include conf/loncapa_apache_local*.conf
1.1       harris41  846: 
                    847: # ================================================== Initiate mod_perl starting
                    848: 
                    849: PerlRequire      conf/startup.pl
1.47      albertel  850: <IfDefine !MODPERL2>
1.1       harris41  851: PerlFreshRestart On
1.47      albertel  852: </IfDefine>

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