Annotation of loncom/loncapa_apache.conf, revision 1.92

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