Annotation of loncom/loncapa_apache.conf, revision 1.94

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

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