Annotation of loncom/loncapa_apache.conf, revision 1.65

1.1       harris41    1: ##
                      2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
                      3: ##
1.65    ! raeburn     4: ## $Id: loncapa_apache.conf,v 1.64 2003/09/16 18:26:00 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
1.65    ! raeburn   511: </Location>
        !           512: 
        !           513: <Location /adm/populate>
        !           514: PerlAccessHandler       Apache::lonacc
        !           515: SetHandler perl-script
        !           516: PerlHandler Apache::lonpopulate
        !           517: ErrorDocument     403 /adm/login
        !           518: ErrorDocument     406 /adm/roles
        !           519: ErrorDocument     500 /adm/errorhandler
1.44      www       520: </Location>
                    521: 
                    522: <Location /adm/managekeys>
                    523: PerlAccessHandler       Apache::lonacc
                    524: SetHandler perl-script
                    525: PerlHandler Apache::lonmanagekeys
1.1       harris41  526: ErrorDocument     403 /adm/login
                    527: ErrorDocument     406 /adm/roles
                    528: ErrorDocument	  500 /adm/errorhandler
                    529: </Location>
                    530: 
                    531: <Location /adm/printout>
                    532: PerlAccessHandler       Apache::lonacc
                    533: SetHandler perl-script
                    534: PerlHandler Apache::lonprintout
                    535: ErrorDocument     403 /adm/login
1.20      www       536: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  537: ErrorDocument	  500 /adm/errorhandler
                    538: </Location>
                    539: 
                    540: <Location /adm/feedback>
                    541: PerlAccessHandler       Apache::lonacc
                    542: SetHandler perl-script
                    543: PerlHandler Apache::lonfeedback
1.10      www       544: ErrorDocument     403 /adm/login
                    545: ErrorDocument	  500 /adm/errorhandler
                    546: </Location>
                    547: 
                    548: <Location /adm/coursedocs>
                    549: PerlAccessHandler       Apache::lonacc
                    550: SetHandler perl-script
                    551: PerlHandler Apache::londocs
1.61      albertel  552:  PerlCleanupHandler Apache::londocs::untiehash
1.10      www       553: ErrorDocument     403 /adm/login
                    554: ErrorDocument	  500 /adm/errorhandler
                    555: </Location>
                    556: 
                    557: <Location /adm/announcements>
                    558: PerlAccessHandler       Apache::lonacc
                    559: SetHandler perl-script
                    560: PerlHandler Apache::lonannounce
                    561: ErrorDocument     403 /adm/login
                    562: ErrorDocument	  500 /adm/errorhandler
                    563: </Location>
                    564: 
                    565: <Location /adm/chat>
                    566: PerlAccessHandler       Apache::lonacc
                    567: SetHandler perl-script
                    568: PerlHandler Apache::lonchat
1.13      www       569: ErrorDocument	  500 /adm/errorhandler
                    570: </Location>
                    571: 
                    572: <Location /adm/chatfetch>
                    573: PerlAccessHandler       Apache::lonacc
                    574: SetHandler perl-script
                    575: PerlHandler Apache::lonchatfetch
1.20      www       576: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  577: ErrorDocument	  500 /adm/errorhandler
                    578: </Location>
                    579: 
                    580: <Location /adm/evaluate>
                    581: PerlAccessHandler       Apache::lonacc
                    582: SetHandler perl-script
                    583: PerlHandler Apache::lonevaluate
                    584: ErrorDocument     403 /adm/login
                    585: ErrorDocument	  500 /adm/errorhandler
                    586: </Location>
                    587: 
                    588: <Location /adm/preferences>
                    589: PerlAccessHandler       Apache::lonacc
                    590: SetHandler perl-script
                    591: PerlHandler Apache::lonpreferences
                    592: ErrorDocument     403 /adm/login
                    593: ErrorDocument	  500 /adm/errorhandler
                    594: </Location>
                    595: 
                    596: <Location /adm/assignments>
                    597: PerlAccessHandler       Apache::lonacc
                    598: SetHandler perl-script
                    599: PerlHandler Apache::lonassignments
                    600: ErrorDocument     403 /adm/login
                    601: ErrorDocument     406 /adm/roles
                    602: ErrorDocument	  500 /adm/errorhandler
                    603: </Location>
                    604: 
                    605: <Location /adm/communicate>
                    606: PerlAccessHandler       Apache::lonacc
                    607: SetHandler perl-script
                    608: PerlHandler Apache::loncommunicate
                    609: ErrorDocument     403 /adm/login
                    610: ErrorDocument	  500 /adm/errorhandler
                    611: </Location>
                    612: 
                    613: <Location /adm/searchcat>
                    614: PerlAccessHandler       Apache::lonacc
                    615: SetHandler perl-script
                    616: PerlHandler Apache::lonsearchcat
1.28      www       617: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1       harris41  618: ErrorDocument     403 /adm/login
1.20      www       619: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  620: ErrorDocument	  500 /adm/errorhandler
                    621: </Location>
                    622: 
                    623: <Location /adm/navmaps>
                    624: PerlAccessHandler       Apache::lonacc
                    625: SetHandler perl-script
                    626: PerlHandler Apache::lonnavmaps
                    627: ErrorDocument     403 /adm/login
                    628: ErrorDocument     406 /adm/roles
                    629: ErrorDocument	  500 /adm/errorhandler
1.26      bowersj2  630: </Location>
                    631: 
                    632: <Location /adm/quickgrades>
                    633: PerlAccessHandler       Apache::lonacc
                    634: SetHandler perl-script
                    635: PerlHandler Apache::lonquickgrades
                    636: ErrorDocument     403 /adm/login
                    637: ErrorDocument     406 /adm/roles
                    638: ErrorDocument     500 /adm/errorhandler
1.1       harris41  639: </Location>
                    640: 
                    641: <Location /adm/groupsort>
                    642: PerlAccessHandler	Apache::lonacc
                    643: SetHandler perl-script
                    644: PerlHandler Apache::groupsort
1.29      www       645: PerlCleanupHandler Apache::groupsort::cleanup
1.1       harris41  646: ErrorDocument     403 /adm/login
                    647: ErrorDocument	  500 /adm/errorhandler
                    648: </Location>
                    649: 
                    650: <Location /adm/errorhandler>
                    651: SetHandler perl-script
                    652: PerlHandler Apache::lonerrorhandler
                    653: </Location>
                    654: 
1.7       bowersj2  655: <LocationMatch "^/adm/help/.*\.hlp$">
                    656: SetHandler perl-script
                    657: PerlHandler Apache::lonhelp
                    658: </LocationMatch>
                    659: 
1.1       harris41  660: # ------------------------------------------------- Backdoor Adm Tests/Programs
                    661: 
                    662: <Location /cgi-bin/loncron.pl>
1.37      www       663: AuthName "LON-CAPA Network Administration"
                    664: AuthType Basic
                    665: AuthUserFile /home/httpd/lonTabs/htpasswd
                    666: require user lonadm
                    667: </Location>
                    668: 
                    669: <Location /cgi-bin/userstatus.pl>
1.1       harris41  670: AuthName "LON-CAPA Network Administration"
                    671: AuthType Basic
                    672: AuthUserFile /home/httpd/lonTabs/htpasswd
                    673: require user lonadm
                    674: </Location>
                    675: 
                    676: <Location /cgi-bin/lonversions.pl>
                    677: AuthName "LON-CAPA Network Administration"
                    678: AuthType Basic
                    679: AuthUserFile /home/httpd/lonTabs/htpasswd
                    680: require user lonadm
                    681: </Location>
                    682: 
                    683: <Location /cgi-bin/clusterstatus.pl>
                    684: AuthName "LON-CAPA Network Administration"
                    685: AuthType Basic
                    686: AuthUserFile /home/httpd/lonTabs/htpasswd
                    687: require user lonadm
                    688: </Location>
                    689: 
                    690: <Location /cgi-bin/metadata_keywords.pl>
                    691: AuthName "LON-CAPA Network Administration"
                    692: AuthType Basic
                    693: AuthUserFile /home/httpd/lonTabs/htpasswd
                    694: require user lonadm
1.22      www       695: </Location>
                    696: 
                    697: <Location /cgi-bin/metadata_harvest.pl>
                    698: AuthName "harvest"
                    699: AuthType Basic
                    700: AuthUserFile /home/httpd/lonTabs/htpasswd
                    701: require user  reaper
1.62      www       702: </Location>
                    703: 
                    704: <Location /cgi-bin/takeoffline.pl>
                    705: AuthName "Offline"
                    706: AuthType Basic
                    707: AuthUserFile /home/httpd/lonTabs/htpasswd
                    708: require user  offline
                    709: </Location>
                    710: 
                    711: <Location /cgi-bin/takeonline.pl>
                    712: AuthName "Offline"
                    713: AuthType Basic
                    714: AuthUserFile /home/httpd/lonTabs/htpasswd
                    715: require user  offline
1.1       harris41  716: </Location>
                    717: 
                    718: <Location /adm/test>
                    719: AuthName "LON-CAPA Network Administration"
                    720: AuthType Basic
                    721: AuthUserFile /home/httpd/lonTabs/htpasswd
                    722: require user lonadm
                    723: SetHandler perl-script
                    724: PerlAccessHandler Apache::lonacc
                    725: PerlHandler Apache::lontest
                    726: </Location>
                    727: 
                    728: # ------------------------------------------------------- Shutting down a child
                    729: 
                    730: PerlChildExitHandler Apache::lonnet::goodbye
                    731: 
                    732: #
                    733: # LON-CAPA Section (extensions to access.conf permission configuration)
                    734: #
                    735: # =========================================================== Directory Options
                    736: 
                    737: # Start out with "no"
                    738: 
                    739: <Directory />
                    740: Options None
                    741: AllowOverride None
                    742: </Directory>
                    743: 
                    744: # Yes to symbolic links and server-side includes
                    745: 
                    746: <Directory /home/httpd/html>
                    747: Options Includes FollowSymLinks
                    748: AllowOverride None
                    749: order allow,deny
                    750: allow from all
                    751: </Directory>
                    752: 
                    753: # If it is in cgi-bin, then it can be executed as a CGI script.
                    754: 
                    755: <Directory /home/httpd/cgi-bin>
                    756: AllowOverride None
                    757: Options ExecCGI
                    758: </Directory>
                    759: 
                    760: # ============================================================= Access Handlers
                    761: 
                    762: # ------------------------------------------------- Allow server-status reports
                    763: <Location /server-status>
                    764: SetHandler server-status
                    765: AuthName "LON-CAPA Network Administration"
                    766: AuthType Basic
                    767: AuthUserFile /home/httpd/lonTabs/htpasswd
                    768: require user lonadm
                    769: </Location>
                    770: 
                    771: # ------------------------ Allow LON-CAPA "low-level" connection status reports
                    772: <Location /lon-status>
                    773: AuthName "LON-CAPA Network Administration"
                    774: AuthType Basic
                    775: AuthUserFile /home/httpd/lonTabs/htpasswd
                    776: require user lonadm
                    777: </Location>
                    778: 
                    779: # ------------------- Allow access to local system documentation from localhost
                    780: Alias /doc /usr/doc
                    781: <Directory /usr/doc>
                    782: order deny,allow
                    783: deny from all
                    784: allow from localhost
                    785: Options Indexes FollowSymLinks
                    786: </Directory>
                    787: 
                    788: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
                    789: # ====================================== Internal Settings / Perl Configuration
                    790: 
1.59      www       791: PerlSetVar	 lonVersion   '<!-- VERSION -->'
1.1       harris41  792: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
                    793: PerlSetVar       lonTabDir    /home/httpd/lonTabs
                    794: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
                    795: PerlSetVar       lonIconsURL  /adm/lonIcons
                    796: PerlSetVar       londPort     5663
                    797: PerlSetVar       lonSysEMail  korte@lite.msu.edu
                    798: PerlSetVar       lonDaemons   /home/httpd/perl
                    799: PerlSetVar       lonSockDir   /home/httpd/sockets
                    800: PerlSetVar       lonDocRoot   /home/httpd/html
                    801: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
1.25      albertel  802: 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       803: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
1.43      albertel  804: PerlSetVar       lonScansDir  /home/httpd/scantron
                    805: PerlSetVar       lonScriptTimeout 10
1.2       harris41  806: # -----------------------------------------------------------------------------
                    807: # NOTE: lonSqlAccess key is the password for the MySQL user
                    808: # www@localhost.  This value must always be "localhostkey".
                    809: # The only security risk occurs when somebody logs in as 'www' on your system
                    810: # (in which case you have much bigger problems than whether or not they
                    811: # can access the non-authoritative loncapa database on your machine).
                    812: 
                    813: PerlSetVar       lonSqlAccess   localhostkey
                    814: 
                    815: # -----------------------------------------------------------------------------
1.36      albertel  816: # lonttpdPort is the port used by the lightweight graphics httpd server
                    817: # not the main Apache server
                    818: PerlSetVar       lonhttpdPort  8080
                    819: 
1.2       harris41  820: 
                    821: 
1.8       harris41  822: # ====================================== Include machine-specific configuration
1.2       harris41  823: 
                    824: Include conf/loncapa.conf
1.61      albertel  825: 
                    826: # ================================================= Include local configuration
                    827: 
                    828: Include conf/loncapa_apache_local*.conf
1.1       harris41  829: 
                    830: # ================================================== Initiate mod_perl starting
                    831: 
                    832: PerlRequire      conf/startup.pl
1.47      albertel  833: <IfDefine !MODPERL2>
1.1       harris41  834: PerlFreshRestart On
1.47      albertel  835: </IfDefine>

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