Annotation of loncom/loncapa_apache.conf, revision 1.73

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

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