Annotation of loncom/loncapa_apache.conf, revision 1.89

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

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