Annotation of loncom/loncapa_apache.conf, revision 1.90.2.2

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

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