Annotation of loncom/loncapa_apache.conf, revision 1.98

1.1       harris41    1: ##
                      2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
                      3: ##
1.98    ! albertel    4: ## $Id: loncapa_apache.conf,v 1.97 2004/09/28 21:36:27 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.95      albertel   46: PerlCleanupHandler	Apache::lonnet::save_cache
1.12      www        47: 
1.45      albertel   48: #PerlWarn On
1.21      www        49: <LocationMatch "^/+res.*">
1.1       harris41   50: PerlAccessHandler       Apache::lonacc
                     51: PerlHeaderParserHandler Apache::lonrep
                     52: ErrorDocument     403 /adm/login
                     53: ErrorDocument     404 /adm/notfound.html
                     54: ErrorDocument     406 /adm/roles
1.74      www        55: ErrorDocument	  500 /adm/errorhandler
                     56: </LocationMatch>
                     57: 
                     58: <LocationMatch "^/+enc.*">
                     59: PerlAccessHandler       Apache::lonenc
                     60: ErrorDocument     403 /adm/login
1.80      albertel   61: ErrorDocument     404 /adm/notfound.html
                     62: ErrorDocument     406 /adm/roles
1.11      www        63: ErrorDocument	  500 /adm/errorhandler
                     64: </LocationMatch>
                     65: 
1.84      banghart   66: <Location /adm/portfolio>
                     67: PerlAccessHandler Apache::lonacc
                     68: SetHandler perl-script
                     69: PerlHandler Apache::portfolio
                     70: </Location>
                     71: 
                     72: <LocationMatch "\.portfolio$">
                     73: SetHandler perl-script
                     74: PerlHandler Apache::portfolio
                     75: </LocationMatch>
                     76: 
                     77: 
                     78: 
1.21      www        79: <LocationMatch "^/+userfiles.*">
1.11      www        80: PerlAccessHandler       Apache::lontokacc
1.58      www        81: PerlCleanupHandler	Apache::lontokacc::removefile
1.12      www        82: </LocationMatch>
                     83: 
1.76      albertel   84: <LocationMatch "^/+uploaded.*">
1.75      raeburn    85: PerlAccessHandler	Apache::lonacc
                     86: PerlHeaderParserHandler Apache::lonuploadrep
1.80      albertel   87: ErrorDocument     403 /adm/login
1.16      www        88: ErrorDocument     404 /adm/notfound.html
1.80      albertel   89: ErrorDocument     406 /adm/roles
1.16      www        90: ErrorDocument	  500 /adm/errorhandler
1.75      raeburn    91: </LocationMatch>
                     92: 
1.98    ! albertel   93: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
        !            94: PerlAccessHandler	Apache::lonuploadedacc
        !            95: </LocationMatch>
        !            96: 
        !            97: 
1.76      albertel   98: <LocationMatch "^/+uploaded/.*\.page$">
1.75      raeburn    99: SetHandler perl-script
                    100: PerlHandler Apache::lonpage
                    101: </LocationMatch>
                    102: 
1.76      albertel  103: <LocationMatch "^/+uploaded/.*\.sequence$">
1.75      raeburn   104: SetHandler perl-script
                    105: PerlHandler Apache::lonsequence
1.16      www       106: </LocationMatch>
                    107: 
1.44      www       108: <LocationMatch "^/+public/.*/syllabus$">
1.17      www       109: PerlAccessHandler	Apache::lonacc
1.16      www       110: SetHandler              perl-script
                    111: PerlHandler             Apache::lonsyllabus
                    112: ErrorDocument     404 /adm/notfound.html
                    113: ErrorDocument	  500 /adm/errorhandler
                    114: </LocationMatch>
                    115: 
1.44      www       116: <LocationMatch "^/adm/.*/aboutme$">
1.17      www       117: PerlAccessHandler	Apache::lonacc
1.16      www       118: SetHandler              perl-script
                    119: PerlHandler             Apache::lonaboutme
1.19      www       120: ErrorDocument     404 /adm/notfound.html
1.54      www       121: ErrorDocument     406 /adm/notinit.html
1.19      www       122: ErrorDocument	  500 /adm/errorhandler
                    123: </LocationMatch>
                    124: 
1.44      www       125: <LocationMatch "^/adm/.*/smppg$">
1.19      www       126: PerlAccessHandler	Apache::lonacc
                    127: SetHandler              perl-script
                    128: PerlHandler             Apache::lonsimplepage
                    129: ErrorDocument     404 /adm/notfound.html
1.54      www       130: ErrorDocument     406 /adm/notinit.html
1.19      www       131: ErrorDocument	  500 /adm/errorhandler
                    132: </LocationMatch>
                    133: 
1.44      www       134: <LocationMatch "^/adm/.*/bulletinboard$">
1.19      www       135: PerlAccessHandler	Apache::lonacc
                    136: SetHandler              perl-script
1.94      albertel  137: PerlHandler             Apache::londatecheck
1.19      www       138: PerlHandler             Apache::lonbulletin
1.55      www       139: ErrorDocument     404 /adm/notfound.html
                    140: ErrorDocument     406 /adm/notinit.html
                    141: ErrorDocument	  500 /adm/errorhandler
                    142: </LocationMatch>
                    143: 
                    144: <LocationMatch "\.problem/smpedit$">
                    145: PerlAccessHandler	Apache::lonacc
                    146: SetHandler              perl-script
                    147: PerlHandler             Apache::lonsimpleproblemedit
1.11      www       148: ErrorDocument     404 /adm/notfound.html
1.54      www       149: ErrorDocument     406 /adm/notinit.html
1.1       harris41  150: ErrorDocument	  500 /adm/errorhandler
                    151: </LocationMatch>
                    152: 
1.21      www       153: <LocationMatch "^/+priv.*">
1.1       harris41  154: PerlAccessHandler Apache::loncacc
                    155: SetHandler        perl-script
                    156: PerlHandler       Apache::lonconstruct
                    157: ErrorDocument     403 /adm/login
                    158: ErrorDocument     404 /adm/notfound.html
1.18      www       159: ErrorDocument     406 /adm/unauthorized
1.1       harris41  160: ErrorDocument	  500 /adm/errorhandler
                    161: </LocationMatch>
                    162: 
1.21      www       163: <LocationMatch "^/+raw.*">
1.1       harris41  164: PerlAccessHandler Apache::lonracc
                    165: </LocationMatch>
                    166: 
1.21      www       167: <LocationMatch "^/+\~.*">
1.1       harris41  168: PerlAccessHandler Apache::loncacc
                    169: ErrorDocument     403 /adm/login
                    170: ErrorDocument     404 /adm/notfound.html
1.18      www       171: ErrorDocument     406 /adm/unauthorized
1.1       harris41  172: ErrorDocument	  500 /adm/errorhandler
                    173: AllowOverride None
                    174: </LocationMatch>
                    175: 
1.41      bowersj2  176: <LocationMatch "^/adm/helper/.*\.helper$">
                    177: PerlAccessHandler Apache::lonacc
                    178: SetHandler        perl-script
                    179: PerlHandler       Apache::lonhelper
                    180: ErrorDocument     403 /adm/login
                    181: ErrorDocument     404 /adm/notfound.html
                    182: ErrorDocument     406 /adm/unauthorized
                    183: ErrorDocument     500 /adm/errorhandler
                    184: </LocationMatch>
                    185: 
1.23      albertel  186: <LocationMatch "/prtspool">
                    187: PerlAccessHandler Apache::lonacc
                    188: ErrorDocument     403 /adm/login
                    189: ErrorDocument     404 /adm/notfound.html
                    190: ErrorDocument     406 /adm/roles
                    191: ErrorDocument	  500 /adm/errorhandler
                    192: </LocationMatch>
1.1       harris41  193: # ------------------------------------------------------------------------- RAT
                    194: 
                    195: <LocationMatch "^/\~.*\.sequence$">
                    196: SetHandler perl-script
                    197: PerlHandler Apache::lonratedt
                    198: </LocationMatch>
                    199: 
                    200: <LocationMatch "^/\~.*\.page$">
                    201: SetHandler perl-script
                    202: PerlHandler Apache::lonratedt
                    203: </LocationMatch>
                    204: 
                    205: <LocationMatch "^/\~.*\/ratserver$">
                    206: SetHandler perl-script
                    207: PerlHandler Apache::lonratsrv
                    208: </LocationMatch>
                    209: 
                    210: <Location /adm/ratparms>
                    211: PerlAccessHandler       Apache::lonacc
                    212: SetHandler perl-script
                    213: PerlHandler Apache::lonratparms
                    214: ErrorDocument     403 /adm/login
                    215: ErrorDocument	  500 /adm/errorhandler
                    216: </Location>
                    217: 
                    218: # --------------------------------------------- Resource Space Content Handlers
                    219: 
1.64      albertel  220: <LocationMatch "^/+res.*/$">
1.1       harris41  221: SetHandler perl-script
                    222: PerlHandler Apache::lonindexer
1.29      www       223: PerlCleanupHandler Apache::lonindexer::cleanup
1.1       harris41  224: </LocationMatch>
                    225: 
1.64      albertel  226: <LocationMatch "^/+(res|\~).*\.tex$">
1.1       harris41  227: SetHandler perl-script
                    228: PerlHandler Apache::lontex
                    229: </LocationMatch>
                    230: 
1.71      www       231: <LocationMatch "^/+res/.*\.page$">
1.1       harris41  232: SetHandler perl-script
                    233: PerlHandler Apache::lonpage
                    234: </LocationMatch>
                    235: 
1.71      www       236: <LocationMatch "^/+res/.*\.sequence$">
1.1       harris41  237: SetHandler perl-script
                    238: PerlHandler Apache::lonsequence
                    239: </LocationMatch>
                    240: 
1.71      www       241: <LocationMatch "^/+(res|\~|public|uploaded|adm).*\.meta$">
1.1       harris41  242: SetHandler perl-script
                    243: PerlHandler Apache::lonmeta
1.39      www       244: </LocationMatch>
                    245: 
1.71      www       246: <LocationMatch "^/adm/bombs/">
                    247: SetHandler perl-script
                    248: PerlAccessHandler Apache::lonacc
                    249: PerlHandler Apache::lonmeta
                    250: </LocationMatch>
                    251: 
                    252: 
                    253: 
                    254: <LocationMatch "^/+(res|\~).*\.rights$">
1.39      www       255: SetHandler perl-script
                    256: PerlHandler Apache::lonrights
1.1       harris41  257: </LocationMatch>
                    258: 
1.78      albertel  259: <LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$">
1.1       harris41  260: SetHandler perl-script
1.81      albertel  261: PerlHandler Apache::londatecheck
1.1       harris41  262: PerlHandler Apache::lonxml
                    263: </LocationMatch>
                    264: 
1.64      albertel  265: <LocationMatch "^/+(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$">
1.1       harris41  266: SetHandler perl-script
                    267: PerlHandler Apache::lonhomework
                    268: </LocationMatch>
                    269: 
                    270: <LocationMatch "^/adm/wrapper/">
                    271: PerlAccessHandler       Apache::lonacc
                    272: SetHandler perl-script
                    273: PerlHandler Apache::lonwrapper
1.66      www       274: ErrorDocument     403 /adm/login
                    275: ErrorDocument	  500 /adm/errorhandler
                    276: </LocationMatch>
                    277: 
1.83      taceyjo1  278: <LocationMatch "^/adm/source/">
                    279: PerlAccessHandler       Apache::lonacc
                    280: SetHandler perl-script
                    281: PerlHandler Apache::lonsource
                    282: ErrorDocument     403 /adm/login
1.85      www       283: ErrorDocument     406 /adm/roles
1.83      taceyjo1  284: ErrorDocument	  500 /adm/errorhandler
                    285: </LocationMatch>
                    286: 
                    287: 
1.66      www       288: <LocationMatch "^/adm/localize/">
                    289: PerlAccessHandler       Apache::lonacc
                    290: SetHandler perl-script
                    291: PerlHandler Apache::lonlocal
1.1       harris41  292: ErrorDocument     403 /adm/login
                    293: ErrorDocument	  500 /adm/errorhandler
                    294: </LocationMatch>
                    295: 
                    296: # -------------------------------------------------------------- Admin Programs
1.24      albertel  297: 
                    298: <Location /adm/randomlabel.png>
                    299: PerlAccessHandler       Apache::lonacc
                    300: SetHandler perl-script
                    301: PerlHandler Apache::randomlylabel
1.69      albertel  302: ErrorDocument     403 /adm/login
                    303: ErrorDocument	  500 /adm/errorhandler
                    304: </Location>
                    305: 
                    306: <Location /adm/imagechoice>
                    307: PerlAccessHandler       Apache::lonacc
                    308: SetHandler perl-script
                    309: PerlHandler Apache::imagechoice
1.24      albertel  310: ErrorDocument     403 /adm/login
                    311: ErrorDocument	  500 /adm/errorhandler
                    312: </Location>
1.1       harris41  313: 
                    314: <Location /adm/statistics>
                    315: PerlAccessHandler       Apache::lonacc
                    316: SetHandler perl-script
                    317: PerlHandler Apache::lonstatistics
                    318: ErrorDocument     403 /adm/login
1.20      www       319: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  320: ErrorDocument	  500 /adm/errorhandler
                    321: </Location>
                    322: 
1.92      matthew   323: <Location /adm/trackstudent>
                    324: PerlAccessHandler       Apache::lonacc
                    325: SetHandler perl-script
                    326: PerlHandler Apache::lontrackstudent
                    327: ErrorDocument     403 /adm/login
                    328: ErrorDocument     413 /adm/overloaded.txt
                    329: ErrorDocument	  500 /adm/errorhandler
                    330: </Location>
                    331: 
1.1       harris41  332: <Location /adm/roles>
                    333: PerlAccessHandler       Apache::lonacc
                    334: SetHandler perl-script
                    335: PerlHandler Apache::lonroles
1.33      www       336: ErrorDocument     403 /adm/login
                    337: ErrorDocument	  500 /adm/errorhandler
                    338: </Location>
                    339: 
                    340: <Location /adm/menu>
                    341: PerlAccessHandler       Apache::lonacc
                    342: SetHandler perl-script
                    343: PerlHandler Apache::lonmenu
1.42      www       344: ErrorDocument     403 /adm/login
                    345: ErrorDocument	  500 /adm/errorhandler
                    346: </Location>
                    347: 
                    348: <Location /adm/remote>
                    349: PerlAccessHandler       Apache::lonacc
                    350: SetHandler perl-script
                    351: PerlHandler Apache::lonremote
1.27      www       352: ErrorDocument     403 /adm/login
                    353: ErrorDocument	  500 /adm/errorhandler
                    354: </Location>
                    355: 
                    356: <Location /adm/pickstudent>
                    357: PerlAccessHandler       Apache::lonacc
                    358: SetHandler perl-script
                    359: PerlHandler Apache::lonpickstudent
1.40      www       360: ErrorDocument     403 /adm/login
                    361: ErrorDocument	  500 /adm/errorhandler
                    362: </Location>
                    363: 
                    364: <Location /adm/pickcourse>
                    365: PerlAccessHandler       Apache::lonacc
                    366: SetHandler perl-script
                    367: PerlHandler Apache::lonpickcourse
1.77      albertel  368: ErrorDocument     403 /adm/login
                    369: ErrorDocument	  500 /adm/errorhandler
                    370: </Location>
                    371: 
                    372: <Location /adm/pickcode>
                    373: PerlAccessHandler       Apache::lonacc
                    374: SetHandler perl-script
                    375: PerlHandler Apache::lonpickcode
1.1       harris41  376: ErrorDocument     403 /adm/login
                    377: ErrorDocument	  500 /adm/errorhandler
                    378: </Location>
                    379: 
                    380: <Location /adm/login>
                    381: SetHandler perl-script
                    382: PerlHandler Apache::lonlogin
                    383: </Location>
                    384: 
                    385: <Location /adm/logout>
                    386: PerlAccessHandler       Apache::lonacc
                    387: SetHandler perl-script
                    388: PerlHandler Apache::lonlogout
                    389: ErrorDocument     403 /adm/login
                    390: </Location>
                    391: 
                    392: <Location /adm/authenticate>
                    393: SetHandler perl-script
                    394: PerlHandler Apache::lonauth
                    395: </Location>
                    396: 
                    397: <Location /adm/annotations>
                    398: PerlAccessHandler       Apache::lonacc
                    399: SetHandler perl-script
                    400: PerlHandler Apache::admannotations
                    401: ErrorDocument     403 /adm/login
                    402: ErrorDocument	  500 /adm/errorhandler
                    403: </Location>
                    404: 
1.91      www       405: <Location /adm/spellcheck>
                    406: PerlAccessHandler       Apache::lonacc
                    407: SetHandler perl-script
                    408: PerlHandler Apache::lonspeller
                    409: ErrorDocument     403 /adm/login
                    410: ErrorDocument	  500 /adm/errorhandler
                    411: </Location>
                    412: 
1.1       harris41  413: <Location /adm/bookmarks>
                    414: PerlAccessHandler       Apache::lonacc
                    415: SetHandler perl-script
                    416: PerlHandler Apache::admbookmarks
                    417: ErrorDocument     403 /adm/login
                    418: ErrorDocument	  500 /adm/errorhandler
                    419: </Location>
                    420: 
                    421: <Location /adm/flip>
                    422: PerlAccessHandler       Apache::lonacc
                    423: SetHandler perl-script
                    424: PerlHandler Apache::lonpageflip
1.30      www       425: PerlCleanupHandler Apache::lonpageflip::cleanup
1.1       harris41  426: ErrorDocument     406 /adm/roles
                    427: ErrorDocument     403 /adm/login
                    428: ErrorDocument	  500 /adm/errorhandler
                    429: </Location>
                    430: 
                    431: <Location /adm/ambiguous>
                    432: PerlAccessHandler       Apache::lonacc
                    433: SetHandler perl-script
                    434: PerlHandler Apache::lonambiguous
1.30      www       435: PerlCleanupHandler Apache::lonambiguous::cleanup
1.1       harris41  436: ErrorDocument     403 /adm/login
                    437: ErrorDocument	  500 /adm/errorhandler
                    438: </Location>
                    439: 
                    440: <Location /adm/email>
                    441: PerlAccessHandler       Apache::lonacc
                    442: SetHandler perl-script
                    443: PerlHandler Apache::lonmsg
                    444: ErrorDocument     403 /adm/login
                    445: ErrorDocument	  500 /adm/errorhandler
                    446: </Location>
                    447: 
                    448: <Location /adm/parmset>
                    449: PerlAccessHandler       Apache::lonacc
                    450: SetHandler perl-script
                    451: PerlHandler Apache::lonparmset
1.31      bowersj2  452: ErrorDocument     403 /adm/login
                    453: ErrorDocument     406 /adm/roles
                    454: ErrorDocument	  500 /adm/errorhandler
                    455: </Location>
                    456: 
                    457: <Location /adm/wizard>
                    458: PerlAccessHandler       Apache::lonacc
                    459: SetHandler perl-script
                    460: PerlHandler Apache::lonwizard
1.1       harris41  461: ErrorDocument     403 /adm/login
                    462: ErrorDocument     406 /adm/roles
                    463: ErrorDocument	  500 /adm/errorhandler
                    464: </Location>
                    465: 
                    466: <Location /adm/grades>
                    467: PerlAccessHandler       Apache::lonacc
                    468: SetHandler perl-script
                    469: PerlHandler Apache::grades
                    470: ErrorDocument     403 /adm/login
                    471: ErrorDocument     406 /adm/roles
                    472: ErrorDocument	  500 /adm/errorhandler
                    473: </Location>
                    474: 
                    475: <Location /adm/createcourse>
                    476: PerlAccessHandler       Apache::lonacc
                    477: SetHandler perl-script
                    478: PerlHandler Apache::loncreatecourse
                    479: ErrorDocument     403 /adm/login
                    480: ErrorDocument     406 /adm/roles
                    481: ErrorDocument	  500 /adm/errorhandler
1.67      raeburn   482: </Location>
                    483: 
                    484: <Location /adm/modifycourse>
                    485: PerlAccessHandler       Apache::lonacc
                    486: SetHandler perl-script
                    487: PerlHandler Apache::lonmodifycourse
                    488: ErrorDocument     403 /adm/login
                    489: ErrorDocument     406 /adm/roles
                    490: ErrorDocument     500 /adm/errorhandler
1.1       harris41  491: </Location>
                    492: 
                    493: <Location /adm/createuser>
                    494: PerlAccessHandler       Apache::lonacc
                    495: SetHandler perl-script
                    496: PerlHandler Apache::loncreateuser
                    497: ErrorDocument     403 /adm/login
                    498: ErrorDocument     406 /adm/roles
                    499: ErrorDocument	  500 /adm/errorhandler
                    500: </Location>
                    501: 
                    502: <Location /adm/publish>
                    503: PerlAccessHandler       Apache::lonacc
                    504: SetHandler perl-script
                    505: PerlHandler Apache::lonpublisher
                    506: ErrorDocument     403 /adm/login
                    507: ErrorDocument     404 /adm/notfound.html
1.18      www       508: ErrorDocument     406 /adm/unauthorized
1.1       harris41  509: ErrorDocument	  500 /adm/errorhandler
                    510: </Location>
                    511: 
1.64      albertel  512: <LocationMatch "^/+\~.*/$">
1.1       harris41  513: PerlAccessHandler       Apache::loncacc
                    514: SetHandler perl-script
                    515: PerlHandler Apache::lonpubdir
                    516: ErrorDocument     403 /adm/login
                    517: ErrorDocument     404 /adm/notfound.html
1.18      www       518: ErrorDocument     406 /adm/unauthorized
1.1       harris41  519: ErrorDocument	  500 /adm/errorhandler
                    520: </LocationMatch>
                    521: 
                    522: <Location /adm/pubdir>
                    523: PerlAccessHandler       Apache::lonacc
                    524: SetHandler perl-script
                    525: PerlHandler Apache::lonpubdir
                    526: ErrorDocument     403 /adm/login
                    527: ErrorDocument     404 /adm/notfound.html
1.18      www       528: ErrorDocument     406 /adm/unauthorized
                    529: ErrorDocument	  500 /adm/errorhandler
                    530: </Location>
                    531: 
                    532: <Location /adm/unauthorized>
                    533: PerlAccessHandler       Apache::lonacc
                    534: SetHandler perl-script
                    535: PerlHandler Apache::lonunauthorized
                    536: ErrorDocument     403 /adm/login
                    537: ErrorDocument     404 /adm/notfound.html
1.1       harris41  538: ErrorDocument	  500 /adm/errorhandler
                    539: </Location>
                    540: 
                    541: <Location /adm/retrieve>
                    542: PerlAccessHandler       Apache::lonacc
                    543: SetHandler perl-script
                    544: PerlHandler Apache::lonretrieve
                    545: ErrorDocument     403 /adm/login
                    546: ErrorDocument     404 /adm/notfound.html
1.18      www       547: ErrorDocument     406 /adm/unauthorized
1.1       harris41  548: ErrorDocument	  500 /adm/errorhandler
                    549: </Location>
                    550: 
                    551: <Location /adm/cfile>
                    552: PerlAccessHandler       Apache::lonacc
                    553: SetHandler perl-script
                    554: PerlHandler Apache::loncfile
                    555: ErrorDocument     403 /adm/login
                    556: ErrorDocument     404 /adm/notfound.html
1.18      www       557: ErrorDocument     406 /adm/unauthorized
1.1       harris41  558: ErrorDocument	  500 /adm/errorhandler
                    559: </Location>
                    560: 
                    561: <Location /adm/diff>
                    562: PerlAccessHandler       Apache::lonacc
                    563: SetHandler perl-script
                    564: PerlHandler Apache::londiff
                    565: ErrorDocument     403 /adm/login
                    566: ErrorDocument     404 /adm/notfound.html
1.18      www       567: ErrorDocument     406 /adm/unauthorized
1.1       harris41  568: ErrorDocument	  500 /adm/errorhandler
                    569: </Location>
                    570: 
                    571: <Location /adm/upload>
                    572: PerlAccessHandler       Apache::lonacc
                    573: SetHandler perl-script
                    574: PerlHandler Apache::lonupload
                    575: ErrorDocument     403 /adm/login
                    576: ErrorDocument     404 /adm/notfound.html
1.18      www       577: ErrorDocument     406 /adm/unauthorized
1.1       harris41  578: ErrorDocument	  500 /adm/errorhandler
1.72      raeburn   579: </Location>
                    580: 
1.73      raeburn   581: <Location /adm/imsimport>
                    582: PerlAccessHandler       Apache::lonacc
                    583: SetHandler perl-script
                    584: PerlHandler Apache::imsimport
                    585: ErrorDocument     403 /adm/login
                    586: ErrorDocument     404 /adm/notfound.html
                    587: ErrorDocument     406 /adm/unauthorized
                    588: ErrorDocument     500 /adm/errorhandler
                    589: </Location>
                    590: 
1.72      raeburn   591: <Location /adm/testbank>
                    592: PerlAccessHandler       Apache::lonacc
                    593: SetHandler perl-script
                    594: PerlHandler Apache::testbankimport
                    595: ErrorDocument     403 /adm/login
                    596: ErrorDocument     404 /adm/notfound.html
                    597: ErrorDocument     406 /adm/unauthorized
                    598: ErrorDocument     500 /adm/errorhandler
1.1       harris41  599: </Location>
                    600: 
                    601: <Location /adm/assesscalc>
                    602: PerlAccessHandler       Apache::lonacc
                    603: SetHandler perl-script
                    604: PerlHandler Apache::lonspreadsheet
                    605: ErrorDocument     403 /adm/login
                    606: ErrorDocument     406 /adm/roles
1.20      www       607: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  608: ErrorDocument	  500 /adm/errorhandler
                    609: </Location>
                    610: 
                    611: <Location /adm/studentcalc>
                    612: PerlAccessHandler       Apache::lonacc
                    613: SetHandler perl-script
                    614: PerlHandler Apache::lonspreadsheet
                    615: ErrorDocument     403 /adm/login
                    616: ErrorDocument     406 /adm/roles
1.20      www       617: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  618: ErrorDocument	  500 /adm/errorhandler
                    619: </Location>
                    620: 
                    621: <Location /adm/classcalc>
                    622: PerlAccessHandler       Apache::lonacc
                    623: SetHandler perl-script
                    624: PerlHandler Apache::lonspreadsheet
                    625: ErrorDocument     403 /adm/login
                    626: ErrorDocument     406 /adm/roles
1.20      www       627: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  628: ErrorDocument	  500 /adm/errorhandler
                    629: </Location>
                    630: 
                    631: <Location /adm/dropadd>
                    632: PerlAccessHandler       Apache::lonacc
                    633: SetHandler perl-script
                    634: PerlHandler Apache::londropadd
1.44      www       635: ErrorDocument     403 /adm/login
                    636: ErrorDocument     406 /adm/roles
                    637: ErrorDocument	  500 /adm/errorhandler
1.65      raeburn   638: </Location>
                    639: 
1.92      matthew   640: <Location /adm/viewclasslist>
                    641: PerlAccessHandler       Apache::lonacc
                    642: SetHandler perl-script
                    643: PerlHandler Apache::lonviewclasslist
                    644: ErrorDocument     403 /adm/login
                    645: ErrorDocument     406 /adm/roles
                    646: ErrorDocument	  500 /adm/errorhandler
                    647: </Location>
                    648: 
1.65      raeburn   649: <Location /adm/populate>
                    650: PerlAccessHandler       Apache::lonacc
                    651: SetHandler perl-script
                    652: PerlHandler Apache::lonpopulate
                    653: ErrorDocument     403 /adm/login
                    654: ErrorDocument     406 /adm/roles
                    655: ErrorDocument     500 /adm/errorhandler
1.44      www       656: </Location>
                    657: 
                    658: <Location /adm/managekeys>
                    659: PerlAccessHandler       Apache::lonacc
                    660: SetHandler perl-script
                    661: PerlHandler Apache::lonmanagekeys
1.1       harris41  662: ErrorDocument     403 /adm/login
                    663: ErrorDocument     406 /adm/roles
                    664: ErrorDocument	  500 /adm/errorhandler
                    665: </Location>
                    666: 
                    667: <Location /adm/printout>
                    668: PerlAccessHandler       Apache::lonacc
                    669: SetHandler perl-script
                    670: PerlHandler Apache::lonprintout
                    671: ErrorDocument     403 /adm/login
1.20      www       672: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  673: ErrorDocument	  500 /adm/errorhandler
                    674: </Location>
                    675: 
                    676: <Location /adm/feedback>
                    677: PerlAccessHandler       Apache::lonacc
                    678: SetHandler perl-script
                    679: PerlHandler Apache::lonfeedback
1.10      www       680: ErrorDocument     403 /adm/login
                    681: ErrorDocument	  500 /adm/errorhandler
                    682: </Location>
                    683: 
                    684: <Location /adm/coursedocs>
                    685: PerlAccessHandler       Apache::lonacc
                    686: SetHandler perl-script
                    687: PerlHandler Apache::londocs
1.61      albertel  688:  PerlCleanupHandler Apache::londocs::untiehash
1.10      www       689: ErrorDocument     403 /adm/login
                    690: ErrorDocument	  500 /adm/errorhandler
1.73      raeburn   691: </Location>
                    692: 
                    693: <Location /adm/imsimportdocs>
                    694: PerlAccessHandler       Apache::lonacc
                    695: SetHandler perl-script
                    696: PerlHandler Apache::imsimportdocs
                    697: ErrorDocument     403 /adm/login
                    698: ErrorDocument     500 /adm/errorhandler
1.10      www       699: </Location>
                    700: 
                    701: <Location /adm/announcements>
                    702: PerlAccessHandler       Apache::lonacc
                    703: SetHandler perl-script
                    704: PerlHandler Apache::lonannounce
                    705: ErrorDocument     403 /adm/login
                    706: ErrorDocument	  500 /adm/errorhandler
                    707: </Location>
                    708: 
                    709: <Location /adm/chat>
                    710: PerlAccessHandler       Apache::lonacc
                    711: SetHandler perl-script
                    712: PerlHandler Apache::lonchat
1.13      www       713: ErrorDocument	  500 /adm/errorhandler
                    714: </Location>
                    715: 
                    716: <Location /adm/chatfetch>
                    717: PerlAccessHandler       Apache::lonacc
                    718: SetHandler perl-script
                    719: PerlHandler Apache::lonchatfetch
1.20      www       720: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  721: ErrorDocument	  500 /adm/errorhandler
                    722: </Location>
                    723: 
                    724: <Location /adm/evaluate>
                    725: PerlAccessHandler       Apache::lonacc
                    726: SetHandler perl-script
                    727: PerlHandler Apache::lonevaluate
                    728: ErrorDocument     403 /adm/login
                    729: ErrorDocument	  500 /adm/errorhandler
                    730: </Location>
                    731: 
                    732: <Location /adm/preferences>
                    733: PerlAccessHandler       Apache::lonacc
                    734: SetHandler perl-script
                    735: PerlHandler Apache::lonpreferences
                    736: ErrorDocument     403 /adm/login
                    737: ErrorDocument	  500 /adm/errorhandler
                    738: </Location>
                    739: 
                    740: <Location /adm/assignments>
                    741: PerlAccessHandler       Apache::lonacc
                    742: SetHandler perl-script
                    743: PerlHandler Apache::lonassignments
                    744: ErrorDocument     403 /adm/login
                    745: ErrorDocument     406 /adm/roles
                    746: ErrorDocument	  500 /adm/errorhandler
                    747: </Location>
                    748: 
                    749: <Location /adm/communicate>
                    750: PerlAccessHandler       Apache::lonacc
                    751: SetHandler perl-script
                    752: PerlHandler Apache::loncommunicate
                    753: ErrorDocument     403 /adm/login
                    754: ErrorDocument	  500 /adm/errorhandler
                    755: </Location>
                    756: 
                    757: <Location /adm/searchcat>
                    758: PerlAccessHandler       Apache::lonacc
                    759: SetHandler perl-script
                    760: PerlHandler Apache::lonsearchcat
1.28      www       761: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1       harris41  762: ErrorDocument     403 /adm/login
1.20      www       763: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  764: ErrorDocument	  500 /adm/errorhandler
                    765: </Location>
                    766: 
                    767: <Location /adm/navmaps>
                    768: PerlAccessHandler       Apache::lonacc
                    769: SetHandler perl-script
                    770: PerlHandler Apache::lonnavmaps
                    771: ErrorDocument     403 /adm/login
                    772: ErrorDocument     406 /adm/roles
                    773: ErrorDocument	  500 /adm/errorhandler
1.26      bowersj2  774: </Location>
                    775: 
                    776: <Location /adm/quickgrades>
                    777: PerlAccessHandler       Apache::lonacc
                    778: SetHandler perl-script
                    779: PerlHandler Apache::lonquickgrades
                    780: ErrorDocument     403 /adm/login
                    781: ErrorDocument     406 /adm/roles
                    782: ErrorDocument     500 /adm/errorhandler
1.1       harris41  783: </Location>
                    784: 
                    785: <Location /adm/groupsort>
                    786: PerlAccessHandler	Apache::lonacc
                    787: SetHandler perl-script
                    788: PerlHandler Apache::groupsort
1.29      www       789: PerlCleanupHandler Apache::groupsort::cleanup
1.1       harris41  790: ErrorDocument     403 /adm/login
                    791: ErrorDocument	  500 /adm/errorhandler
                    792: </Location>
                    793: 
                    794: <Location /adm/errorhandler>
                    795: SetHandler perl-script
                    796: PerlHandler Apache::lonerrorhandler
                    797: </Location>
                    798: 
1.7       bowersj2  799: <LocationMatch "^/adm/help/.*\.hlp$">
1.68      www       800: PerlAccessHandler	Apache::lonacc
1.7       bowersj2  801: SetHandler perl-script
                    802: PerlHandler Apache::lonhelp
                    803: </LocationMatch>
                    804: 
1.90      raeburn   805: <LocationMatch "^/adm/helpmenu">
                    806: PerlAccessHandler       Apache::lonacc
                    807: SetHandler perl-script
                    808: PerlHandler Apache::lonhelpmenu
                    809: </LocationMatch>
                    810: 
                    811: <LocationMatch "^/adm/support">
                    812: PerlAccessHandler       Apache::lonacc
                    813: SetHandler perl-script
                    814: PerlHandler Apache::lonsupportreq
                    815: </LocationMatch>
                    816: 
1.1       harris41  817: # ------------------------------------------------- Backdoor Adm Tests/Programs
                    818: 
                    819: <Location /cgi-bin/loncron.pl>
1.37      www       820: AuthName "LON-CAPA Network Administration"
                    821: AuthType Basic
                    822: AuthUserFile /home/httpd/lonTabs/htpasswd
                    823: require user lonadm
                    824: </Location>
                    825: 
                    826: <Location /cgi-bin/userstatus.pl>
1.1       harris41  827: AuthName "LON-CAPA Network Administration"
                    828: AuthType Basic
                    829: AuthUserFile /home/httpd/lonTabs/htpasswd
                    830: require user lonadm
                    831: </Location>
                    832: 
                    833: <Location /cgi-bin/lonversions.pl>
                    834: AuthName "LON-CAPA Network Administration"
                    835: AuthType Basic
                    836: AuthUserFile /home/httpd/lonTabs/htpasswd
                    837: require user lonadm
                    838: </Location>
                    839: 
                    840: <Location /cgi-bin/clusterstatus.pl>
                    841: AuthName "LON-CAPA Network Administration"
                    842: AuthType Basic
                    843: AuthUserFile /home/httpd/lonTabs/htpasswd
                    844: require user lonadm
                    845: </Location>
                    846: 
                    847: <Location /cgi-bin/metadata_keywords.pl>
                    848: AuthName "LON-CAPA Network Administration"
                    849: AuthType Basic
                    850: AuthUserFile /home/httpd/lonTabs/htpasswd
                    851: require user lonadm
1.22      www       852: </Location>
                    853: 
                    854: <Location /cgi-bin/metadata_harvest.pl>
                    855: AuthName "harvest"
                    856: AuthType Basic
                    857: AuthUserFile /home/httpd/lonTabs/htpasswd
                    858: require user  reaper
1.62      www       859: </Location>
                    860: 
                    861: <Location /cgi-bin/takeoffline.pl>
                    862: AuthName "Offline"
                    863: AuthType Basic
                    864: AuthUserFile /home/httpd/lonTabs/htpasswd
                    865: require user  offline
                    866: </Location>
                    867: 
                    868: <Location /cgi-bin/takeonline.pl>
                    869: AuthName "Offline"
                    870: AuthType Basic
                    871: AuthUserFile /home/httpd/lonTabs/htpasswd
                    872: require user  offline
1.1       harris41  873: </Location>
                    874: 
                    875: <Location /adm/test>
                    876: AuthName "LON-CAPA Network Administration"
                    877: AuthType Basic
                    878: AuthUserFile /home/httpd/lonTabs/htpasswd
                    879: require user lonadm
                    880: SetHandler perl-script
                    881: PerlAccessHandler Apache::lonacc
                    882: PerlHandler Apache::lontest
                    883: </Location>
                    884: 
                    885: # ------------------------------------------------------- Shutting down a child
                    886: 
                    887: PerlChildExitHandler Apache::lonnet::goodbye
                    888: 
                    889: #
                    890: # LON-CAPA Section (extensions to access.conf permission configuration)
                    891: #
                    892: # =========================================================== Directory Options
                    893: 
                    894: # Start out with "no"
                    895: 
                    896: <Directory />
                    897: Options None
                    898: AllowOverride None
                    899: </Directory>
                    900: 
                    901: # Yes to symbolic links and server-side includes
                    902: 
                    903: <Directory /home/httpd/html>
                    904: Options Includes FollowSymLinks
                    905: AllowOverride None
                    906: order allow,deny
                    907: allow from all
                    908: </Directory>
                    909: 
                    910: # If it is in cgi-bin, then it can be executed as a CGI script.
                    911: 
                    912: <Directory /home/httpd/cgi-bin>
                    913: AllowOverride None
                    914: Options ExecCGI
                    915: </Directory>
                    916: 
                    917: # ============================================================= Access Handlers
                    918: 
                    919: # ------------------------------------------------- Allow server-status reports
                    920: <Location /server-status>
                    921: SetHandler server-status
                    922: AuthName "LON-CAPA Network Administration"
                    923: AuthType Basic
                    924: AuthUserFile /home/httpd/lonTabs/htpasswd
                    925: require user lonadm
                    926: </Location>
                    927: 
                    928: # ------------------------ Allow LON-CAPA "low-level" connection status reports
                    929: <Location /lon-status>
                    930: AuthName "LON-CAPA Network Administration"
                    931: AuthType Basic
                    932: AuthUserFile /home/httpd/lonTabs/htpasswd
                    933: require user lonadm
                    934: </Location>
                    935: 
                    936: # ------------------- Allow access to local system documentation from localhost
                    937: Alias /doc /usr/doc
                    938: <Directory /usr/doc>
                    939: order deny,allow
                    940: deny from all
                    941: allow from localhost
                    942: Options Indexes FollowSymLinks
                    943: </Directory>
                    944: 
                    945: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
                    946: # ====================================== Internal Settings / Perl Configuration
                    947: 
1.59      www       948: PerlSetVar	 lonVersion   '<!-- VERSION -->'
1.1       harris41  949: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
                    950: PerlSetVar       lonTabDir    /home/httpd/lonTabs
                    951: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
                    952: PerlSetVar       lonIconsURL  /adm/lonIcons
                    953: PerlSetVar       londPort     5663
                    954: PerlSetVar       lonSysEMail  korte@lite.msu.edu
                    955: PerlSetVar       lonDaemons   /home/httpd/perl
                    956: PerlSetVar       lonSockDir   /home/httpd/sockets
                    957: PerlSetVar       lonDocRoot   /home/httpd/html
1.98    ! albertel  958: PerlSetVar       lonPrtDir    /home/httpd/prtspool
1.1       harris41  959: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
1.97      www       960: PerlSetVar       lonBrowsDet  explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999:1&netscape:netscape:msie:netscape\/(\d+\.\d+):9999:7&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1&safari:safari:msie:safari\/(\d+\.\d+):9999:9999
1.35      www       961: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
1.43      albertel  962: PerlSetVar       lonScansDir  /home/httpd/scantron
                    963: PerlSetVar       lonScriptTimeout 10
1.70      www       964: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
                    965: PerlSetVar	 FAQHost	http://help.lon-capa.org/
1.2       harris41  966: # -----------------------------------------------------------------------------
                    967: # NOTE: lonSqlAccess key is the password for the MySQL user
                    968: # www@localhost.  This value must always be "localhostkey".
                    969: # The only security risk occurs when somebody logs in as 'www' on your system
                    970: # (in which case you have much bigger problems than whether or not they
                    971: # can access the non-authoritative loncapa database on your machine).
                    972: 
                    973: PerlSetVar       lonSqlAccess   localhostkey
                    974: 
                    975: # -----------------------------------------------------------------------------
1.36      albertel  976: # lonttpdPort is the port used by the lightweight graphics httpd server
                    977: # not the main Apache server
1.96      albertel  978: PerlSetVar       lonhttpdPort  8080
1.36      albertel  979: 
1.2       harris41  980: 
1.86      foxr      981: #----------------------------------------------------------------------------
                    982: #
1.79      foxr      983: #   Parameters used by secure lond/lonc
                    984: 
                    985: #
                    986: #   Secure lond/lonc require ssl certificate and private
                    987: #   key files to function correctly.  The certificate
                    988: #   files need not be terribly secure, but the private key files
                    989: #   should be set up so that only www (the lonc/lond effective user)
                    990: #   can read them.
                    991: # 
                    992: #   The definition below is the full path to the directory that
                    993: #   contains the certificate and key files:
1.82      foxr      994: 
1.79      foxr      995: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
                    996: 
                    997: #
                    998: #  Secure lond/lonc require two certificates and a private host key.
                    999: #  The certificates required are that of the lonCAPA certificate authority
                   1000: #  and the certificate that authority issued to this host.
                   1001: #  lonnetCertificateAuthority is the name of the file that contains the
                   1002: #                            lonCAPA certificate authority's certificate.
                   1003: #  lonnetCertificate is the name of the file that contains the certificate
                   1004: #                    issued to the host by the certificate authority.
                   1005: #  Both of these variables are names of files assumed to be in 
                   1006: #  lonCertificateDirectory:
                   1007: 
                   1008: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
                   1009: PerlSetVar lonnetCertificate          lonhostcert.pem
                   1010: 
                   1011: #
                   1012: #  To generate the request for a certificate, and to negotiate the
                   1013: #  initial ssl connection, the host requires a private key.  This key
                   1014: #  is created at lonCAPA install time.  Did we mention above that it
                   1015: #  should be set so that only www can read it?  The variale below
                   1016: #  is the name of the file relative to lonnetCertificateDirectory
                   1017: #  that has the host's private key.  Did we remember to tell you to
                   1018: #  keep the permissions on that file set to rw-------  (0600)?
                   1019: #  
                   1020: 
                   1021: PerlSetVar lonnetPrivateKey         lonKey.pem
                   1022: 
                   1023: # Did we mention that the file described above must have
                   1024: # permissions really locked down so that it can't be stolen?
                   1025: 
1.86      foxr     1026: #-------------------------------------------------------------------------
                   1027: 
                   1028: #   Parameters that define where all the ssl stuff is that's needed
                   1029: #   to generate certificate requests and, on a system that's a CA
                   1030: #   the certificate authority.
                   1031: #    
                   1032: #    SSLProgram    -> Path to the openssl command
                   1033: #    SSLDirectory  -> Directory containing ssl configuration files etc.
                   1034: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
                   1035: #                     Authority.
1.87      foxr     1036: #    SSLCAFile     -> Full path to the Certificate authority file 
                   1037: #                    (on the cert manager system).
                   1038: #    SSLEmail      -> E-mail address of loncapa certificate manager.
1.86      foxr     1039: #    The following are good for the loncapa redhat installs and
                   1040: #    the loncapa certificate authority system:
                   1041: #
                   1042: PerlSetVar SSLProgram	/usr/bin/openssl
                   1043: PerlSetVar SSLDirectory /usr/share/ssl
                   1044: PerlSetVar SSLCAConfig  loncapaca
1.87      foxr     1045: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
1.93      albertel 1046: PerlSetVar SSLEmail     certificate@lon-capa.org
1.86      foxr     1047: 
                   1048: #-------------------------------------------------------------------------
                   1049: 
1.79      foxr     1050: 
                   1051: 
1.2       harris41 1052: 
1.8       harris41 1053: # ====================================== Include machine-specific configuration
1.2       harris41 1054: 
                   1055: Include conf/loncapa.conf
1.61      albertel 1056: 
                   1057: # ================================================= Include local configuration
                   1058: 
                   1059: Include conf/loncapa_apache_local*.conf
1.1       harris41 1060: 
                   1061: # ================================================== Initiate mod_perl starting
                   1062: 
                   1063: PerlRequire      conf/startup.pl
1.47      albertel 1064: <IfDefine !MODPERL2>
1.1       harris41 1065: PerlFreshRestart On
1.47      albertel 1066: </IfDefine>

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