Annotation of loncom/loncapa_apache.conf, revision 1.84

1.1       harris41    1: ##
                      2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
                      3: ##
1.84    ! banghart    4: ## $Id: loncapa_apache.conf,v 1.83 2004/06/12 01:11:00 taceyjo1 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
                    279: ErrorDocument	  500 /adm/errorhandler
                    280: </LocationMatch>
                    281: 
                    282: 
1.66      www       283: <LocationMatch "^/adm/localize/">
                    284: PerlAccessHandler       Apache::lonacc
                    285: SetHandler perl-script
                    286: PerlHandler Apache::lonlocal
1.1       harris41  287: ErrorDocument     403 /adm/login
                    288: ErrorDocument	  500 /adm/errorhandler
                    289: </LocationMatch>
                    290: 
                    291: # -------------------------------------------------------------- Admin Programs
1.24      albertel  292: 
                    293: <Location /adm/randomlabel.png>
                    294: PerlAccessHandler       Apache::lonacc
                    295: SetHandler perl-script
                    296: PerlHandler Apache::randomlylabel
1.69      albertel  297: ErrorDocument     403 /adm/login
                    298: ErrorDocument	  500 /adm/errorhandler
                    299: </Location>
                    300: 
                    301: <Location /adm/imagechoice>
                    302: PerlAccessHandler       Apache::lonacc
                    303: SetHandler perl-script
                    304: PerlHandler Apache::imagechoice
1.24      albertel  305: ErrorDocument     403 /adm/login
                    306: ErrorDocument	  500 /adm/errorhandler
                    307: </Location>
1.1       harris41  308: 
                    309: <Location /adm/statistics>
                    310: PerlAccessHandler       Apache::lonacc
                    311: SetHandler perl-script
                    312: PerlHandler Apache::lonstatistics
                    313: ErrorDocument     403 /adm/login
1.20      www       314: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  315: ErrorDocument	  500 /adm/errorhandler
                    316: </Location>
                    317: 
                    318: <Location /adm/roles>
                    319: PerlAccessHandler       Apache::lonacc
                    320: SetHandler perl-script
                    321: PerlHandler Apache::lonroles
1.33      www       322: ErrorDocument     403 /adm/login
                    323: ErrorDocument	  500 /adm/errorhandler
                    324: </Location>
                    325: 
                    326: <Location /adm/menu>
                    327: PerlAccessHandler       Apache::lonacc
                    328: SetHandler perl-script
                    329: PerlHandler Apache::lonmenu
1.42      www       330: ErrorDocument     403 /adm/login
                    331: ErrorDocument	  500 /adm/errorhandler
                    332: </Location>
                    333: 
                    334: <Location /adm/remote>
                    335: PerlAccessHandler       Apache::lonacc
                    336: SetHandler perl-script
                    337: PerlHandler Apache::lonremote
1.27      www       338: ErrorDocument     403 /adm/login
                    339: ErrorDocument	  500 /adm/errorhandler
                    340: </Location>
                    341: 
                    342: <Location /adm/pickstudent>
                    343: PerlAccessHandler       Apache::lonacc
                    344: SetHandler perl-script
                    345: PerlHandler Apache::lonpickstudent
1.40      www       346: ErrorDocument     403 /adm/login
                    347: ErrorDocument	  500 /adm/errorhandler
                    348: </Location>
                    349: 
                    350: <Location /adm/pickcourse>
                    351: PerlAccessHandler       Apache::lonacc
                    352: SetHandler perl-script
                    353: PerlHandler Apache::lonpickcourse
1.77      albertel  354: ErrorDocument     403 /adm/login
                    355: ErrorDocument	  500 /adm/errorhandler
                    356: </Location>
                    357: 
                    358: <Location /adm/pickcode>
                    359: PerlAccessHandler       Apache::lonacc
                    360: SetHandler perl-script
                    361: PerlHandler Apache::lonpickcode
1.1       harris41  362: ErrorDocument     403 /adm/login
                    363: ErrorDocument	  500 /adm/errorhandler
                    364: </Location>
                    365: 
                    366: <Location /adm/login>
                    367: SetHandler perl-script
                    368: PerlHandler Apache::lonlogin
                    369: </Location>
                    370: 
                    371: <Location /adm/logout>
                    372: PerlAccessHandler       Apache::lonacc
                    373: SetHandler perl-script
                    374: PerlHandler Apache::lonlogout
                    375: ErrorDocument     403 /adm/login
                    376: </Location>
                    377: 
                    378: <Location /adm/authenticate>
                    379: SetHandler perl-script
                    380: PerlHandler Apache::lonauth
                    381: </Location>
                    382: 
                    383: <Location /adm/annotations>
                    384: PerlAccessHandler       Apache::lonacc
                    385: SetHandler perl-script
                    386: PerlHandler Apache::admannotations
                    387: ErrorDocument     403 /adm/login
                    388: ErrorDocument	  500 /adm/errorhandler
                    389: </Location>
                    390: 
                    391: <Location /adm/bookmarks>
                    392: PerlAccessHandler       Apache::lonacc
                    393: SetHandler perl-script
                    394: PerlHandler Apache::admbookmarks
                    395: ErrorDocument     403 /adm/login
                    396: ErrorDocument	  500 /adm/errorhandler
                    397: </Location>
                    398: 
                    399: <Location /adm/flip>
                    400: PerlAccessHandler       Apache::lonacc
                    401: SetHandler perl-script
                    402: PerlHandler Apache::lonpageflip
1.30      www       403: PerlCleanupHandler Apache::lonpageflip::cleanup
1.1       harris41  404: ErrorDocument     406 /adm/roles
                    405: ErrorDocument     403 /adm/login
                    406: ErrorDocument	  500 /adm/errorhandler
                    407: </Location>
                    408: 
                    409: <Location /adm/ambiguous>
                    410: PerlAccessHandler       Apache::lonacc
                    411: SetHandler perl-script
                    412: PerlHandler Apache::lonambiguous
1.30      www       413: PerlCleanupHandler Apache::lonambiguous::cleanup
1.1       harris41  414: ErrorDocument     403 /adm/login
                    415: ErrorDocument	  500 /adm/errorhandler
                    416: </Location>
                    417: 
                    418: <Location /adm/email>
                    419: PerlAccessHandler       Apache::lonacc
                    420: SetHandler perl-script
                    421: PerlHandler Apache::lonmsg
                    422: ErrorDocument     403 /adm/login
                    423: ErrorDocument	  500 /adm/errorhandler
                    424: </Location>
                    425: 
                    426: <Location /adm/parmset>
                    427: PerlAccessHandler       Apache::lonacc
                    428: SetHandler perl-script
                    429: PerlHandler Apache::lonparmset
1.31      bowersj2  430: ErrorDocument     403 /adm/login
                    431: ErrorDocument     406 /adm/roles
                    432: ErrorDocument	  500 /adm/errorhandler
                    433: </Location>
                    434: 
                    435: <Location /adm/wizard>
                    436: PerlAccessHandler       Apache::lonacc
                    437: SetHandler perl-script
                    438: PerlHandler Apache::lonwizard
1.1       harris41  439: ErrorDocument     403 /adm/login
                    440: ErrorDocument     406 /adm/roles
                    441: ErrorDocument	  500 /adm/errorhandler
                    442: </Location>
                    443: 
                    444: <Location /adm/grades>
                    445: PerlAccessHandler       Apache::lonacc
                    446: SetHandler perl-script
                    447: PerlHandler Apache::grades
                    448: ErrorDocument     403 /adm/login
                    449: ErrorDocument     406 /adm/roles
                    450: ErrorDocument	  500 /adm/errorhandler
                    451: </Location>
                    452: 
                    453: <Location /adm/createcourse>
                    454: PerlAccessHandler       Apache::lonacc
                    455: SetHandler perl-script
                    456: PerlHandler Apache::loncreatecourse
                    457: ErrorDocument     403 /adm/login
                    458: ErrorDocument     406 /adm/roles
                    459: ErrorDocument	  500 /adm/errorhandler
1.67      raeburn   460: </Location>
                    461: 
                    462: <Location /adm/modifycourse>
                    463: PerlAccessHandler       Apache::lonacc
                    464: SetHandler perl-script
                    465: PerlHandler Apache::lonmodifycourse
                    466: ErrorDocument     403 /adm/login
                    467: ErrorDocument     406 /adm/roles
                    468: ErrorDocument     500 /adm/errorhandler
1.1       harris41  469: </Location>
                    470: 
                    471: <Location /adm/createuser>
                    472: PerlAccessHandler       Apache::lonacc
                    473: SetHandler perl-script
                    474: PerlHandler Apache::loncreateuser
                    475: ErrorDocument     403 /adm/login
                    476: ErrorDocument     406 /adm/roles
                    477: ErrorDocument	  500 /adm/errorhandler
                    478: </Location>
                    479: 
                    480: <Location /adm/publish>
                    481: PerlAccessHandler       Apache::lonacc
                    482: SetHandler perl-script
                    483: PerlHandler Apache::lonpublisher
                    484: ErrorDocument     403 /adm/login
                    485: ErrorDocument     404 /adm/notfound.html
1.18      www       486: ErrorDocument     406 /adm/unauthorized
1.1       harris41  487: ErrorDocument	  500 /adm/errorhandler
                    488: </Location>
                    489: 
1.64      albertel  490: <LocationMatch "^/+\~.*/$">
1.1       harris41  491: PerlAccessHandler       Apache::loncacc
                    492: SetHandler perl-script
                    493: PerlHandler Apache::lonpubdir
                    494: ErrorDocument     403 /adm/login
                    495: ErrorDocument     404 /adm/notfound.html
1.18      www       496: ErrorDocument     406 /adm/unauthorized
1.1       harris41  497: ErrorDocument	  500 /adm/errorhandler
                    498: </LocationMatch>
                    499: 
                    500: <Location /adm/pubdir>
                    501: PerlAccessHandler       Apache::lonacc
                    502: SetHandler perl-script
                    503: PerlHandler Apache::lonpubdir
                    504: ErrorDocument     403 /adm/login
                    505: ErrorDocument     404 /adm/notfound.html
1.18      www       506: ErrorDocument     406 /adm/unauthorized
                    507: ErrorDocument	  500 /adm/errorhandler
                    508: </Location>
                    509: 
                    510: <Location /adm/unauthorized>
                    511: PerlAccessHandler       Apache::lonacc
                    512: SetHandler perl-script
                    513: PerlHandler Apache::lonunauthorized
                    514: ErrorDocument     403 /adm/login
                    515: ErrorDocument     404 /adm/notfound.html
1.1       harris41  516: ErrorDocument	  500 /adm/errorhandler
                    517: </Location>
                    518: 
                    519: <Location /adm/retrieve>
                    520: PerlAccessHandler       Apache::lonacc
                    521: SetHandler perl-script
                    522: PerlHandler Apache::lonretrieve
                    523: ErrorDocument     403 /adm/login
                    524: ErrorDocument     404 /adm/notfound.html
1.18      www       525: ErrorDocument     406 /adm/unauthorized
1.1       harris41  526: ErrorDocument	  500 /adm/errorhandler
                    527: </Location>
                    528: 
                    529: <Location /adm/cfile>
                    530: PerlAccessHandler       Apache::lonacc
                    531: SetHandler perl-script
                    532: PerlHandler Apache::loncfile
                    533: ErrorDocument     403 /adm/login
                    534: ErrorDocument     404 /adm/notfound.html
1.18      www       535: ErrorDocument     406 /adm/unauthorized
1.1       harris41  536: ErrorDocument	  500 /adm/errorhandler
                    537: </Location>
                    538: 
                    539: <Location /adm/diff>
                    540: PerlAccessHandler       Apache::lonacc
                    541: SetHandler perl-script
                    542: PerlHandler Apache::londiff
                    543: ErrorDocument     403 /adm/login
                    544: ErrorDocument     404 /adm/notfound.html
1.18      www       545: ErrorDocument     406 /adm/unauthorized
1.1       harris41  546: ErrorDocument	  500 /adm/errorhandler
                    547: </Location>
                    548: 
                    549: <Location /adm/upload>
                    550: PerlAccessHandler       Apache::lonacc
                    551: SetHandler perl-script
                    552: PerlHandler Apache::lonupload
                    553: ErrorDocument     403 /adm/login
                    554: ErrorDocument     404 /adm/notfound.html
1.18      www       555: ErrorDocument     406 /adm/unauthorized
1.1       harris41  556: ErrorDocument	  500 /adm/errorhandler
1.72      raeburn   557: </Location>
                    558: 
1.73      raeburn   559: <Location /adm/imsimport>
                    560: PerlAccessHandler       Apache::lonacc
                    561: SetHandler perl-script
                    562: PerlHandler Apache::imsimport
                    563: ErrorDocument     403 /adm/login
                    564: ErrorDocument     404 /adm/notfound.html
                    565: ErrorDocument     406 /adm/unauthorized
                    566: ErrorDocument     500 /adm/errorhandler
                    567: </Location>
                    568: 
1.72      raeburn   569: <Location /adm/testbank>
                    570: PerlAccessHandler       Apache::lonacc
                    571: SetHandler perl-script
                    572: PerlHandler Apache::testbankimport
                    573: ErrorDocument     403 /adm/login
                    574: ErrorDocument     404 /adm/notfound.html
                    575: ErrorDocument     406 /adm/unauthorized
                    576: ErrorDocument     500 /adm/errorhandler
1.1       harris41  577: </Location>
                    578: 
                    579: <Location /adm/assesscalc>
                    580: PerlAccessHandler       Apache::lonacc
                    581: SetHandler perl-script
                    582: PerlHandler Apache::lonspreadsheet
                    583: ErrorDocument     403 /adm/login
                    584: ErrorDocument     406 /adm/roles
1.20      www       585: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  586: ErrorDocument	  500 /adm/errorhandler
                    587: </Location>
                    588: 
                    589: <Location /adm/studentcalc>
                    590: PerlAccessHandler       Apache::lonacc
                    591: SetHandler perl-script
                    592: PerlHandler Apache::lonspreadsheet
                    593: ErrorDocument     403 /adm/login
                    594: ErrorDocument     406 /adm/roles
1.20      www       595: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  596: ErrorDocument	  500 /adm/errorhandler
                    597: </Location>
                    598: 
                    599: <Location /adm/classcalc>
                    600: PerlAccessHandler       Apache::lonacc
                    601: SetHandler perl-script
                    602: PerlHandler Apache::lonspreadsheet
                    603: ErrorDocument     403 /adm/login
                    604: ErrorDocument     406 /adm/roles
1.20      www       605: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  606: ErrorDocument	  500 /adm/errorhandler
                    607: </Location>
                    608: 
                    609: <Location /adm/dropadd>
                    610: PerlAccessHandler       Apache::lonacc
                    611: SetHandler perl-script
                    612: PerlHandler Apache::londropadd
1.44      www       613: ErrorDocument     403 /adm/login
                    614: ErrorDocument     406 /adm/roles
                    615: ErrorDocument	  500 /adm/errorhandler
1.65      raeburn   616: </Location>
                    617: 
                    618: <Location /adm/populate>
                    619: PerlAccessHandler       Apache::lonacc
                    620: SetHandler perl-script
                    621: PerlHandler Apache::lonpopulate
                    622: ErrorDocument     403 /adm/login
                    623: ErrorDocument     406 /adm/roles
                    624: ErrorDocument     500 /adm/errorhandler
1.44      www       625: </Location>
                    626: 
                    627: <Location /adm/managekeys>
                    628: PerlAccessHandler       Apache::lonacc
                    629: SetHandler perl-script
                    630: PerlHandler Apache::lonmanagekeys
1.1       harris41  631: ErrorDocument     403 /adm/login
                    632: ErrorDocument     406 /adm/roles
                    633: ErrorDocument	  500 /adm/errorhandler
                    634: </Location>
                    635: 
                    636: <Location /adm/printout>
                    637: PerlAccessHandler       Apache::lonacc
                    638: SetHandler perl-script
                    639: PerlHandler Apache::lonprintout
                    640: ErrorDocument     403 /adm/login
1.20      www       641: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  642: ErrorDocument	  500 /adm/errorhandler
                    643: </Location>
                    644: 
                    645: <Location /adm/feedback>
                    646: PerlAccessHandler       Apache::lonacc
                    647: SetHandler perl-script
                    648: PerlHandler Apache::lonfeedback
1.10      www       649: ErrorDocument     403 /adm/login
                    650: ErrorDocument	  500 /adm/errorhandler
                    651: </Location>
                    652: 
                    653: <Location /adm/coursedocs>
                    654: PerlAccessHandler       Apache::lonacc
                    655: SetHandler perl-script
                    656: PerlHandler Apache::londocs
1.61      albertel  657:  PerlCleanupHandler Apache::londocs::untiehash
1.10      www       658: ErrorDocument     403 /adm/login
                    659: ErrorDocument	  500 /adm/errorhandler
1.73      raeburn   660: </Location>
                    661: 
                    662: <Location /adm/imsimportdocs>
                    663: PerlAccessHandler       Apache::lonacc
                    664: SetHandler perl-script
                    665: PerlHandler Apache::imsimportdocs
                    666: ErrorDocument     403 /adm/login
                    667: ErrorDocument     500 /adm/errorhandler
1.10      www       668: </Location>
                    669: 
                    670: <Location /adm/announcements>
                    671: PerlAccessHandler       Apache::lonacc
                    672: SetHandler perl-script
                    673: PerlHandler Apache::lonannounce
                    674: ErrorDocument     403 /adm/login
                    675: ErrorDocument	  500 /adm/errorhandler
                    676: </Location>
                    677: 
                    678: <Location /adm/chat>
                    679: PerlAccessHandler       Apache::lonacc
                    680: SetHandler perl-script
                    681: PerlHandler Apache::lonchat
1.13      www       682: ErrorDocument	  500 /adm/errorhandler
                    683: </Location>
                    684: 
                    685: <Location /adm/chatfetch>
                    686: PerlAccessHandler       Apache::lonacc
                    687: SetHandler perl-script
                    688: PerlHandler Apache::lonchatfetch
1.20      www       689: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  690: ErrorDocument	  500 /adm/errorhandler
                    691: </Location>
                    692: 
                    693: <Location /adm/evaluate>
                    694: PerlAccessHandler       Apache::lonacc
                    695: SetHandler perl-script
                    696: PerlHandler Apache::lonevaluate
                    697: ErrorDocument     403 /adm/login
                    698: ErrorDocument	  500 /adm/errorhandler
                    699: </Location>
                    700: 
                    701: <Location /adm/preferences>
                    702: PerlAccessHandler       Apache::lonacc
                    703: SetHandler perl-script
                    704: PerlHandler Apache::lonpreferences
                    705: ErrorDocument     403 /adm/login
                    706: ErrorDocument	  500 /adm/errorhandler
                    707: </Location>
                    708: 
                    709: <Location /adm/assignments>
                    710: PerlAccessHandler       Apache::lonacc
                    711: SetHandler perl-script
                    712: PerlHandler Apache::lonassignments
                    713: ErrorDocument     403 /adm/login
                    714: ErrorDocument     406 /adm/roles
                    715: ErrorDocument	  500 /adm/errorhandler
                    716: </Location>
                    717: 
                    718: <Location /adm/communicate>
                    719: PerlAccessHandler       Apache::lonacc
                    720: SetHandler perl-script
                    721: PerlHandler Apache::loncommunicate
                    722: ErrorDocument     403 /adm/login
                    723: ErrorDocument	  500 /adm/errorhandler
                    724: </Location>
                    725: 
                    726: <Location /adm/searchcat>
                    727: PerlAccessHandler       Apache::lonacc
                    728: SetHandler perl-script
                    729: PerlHandler Apache::lonsearchcat
1.28      www       730: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1       harris41  731: ErrorDocument     403 /adm/login
1.20      www       732: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  733: ErrorDocument	  500 /adm/errorhandler
                    734: </Location>
                    735: 
                    736: <Location /adm/navmaps>
                    737: PerlAccessHandler       Apache::lonacc
                    738: SetHandler perl-script
                    739: PerlHandler Apache::lonnavmaps
                    740: ErrorDocument     403 /adm/login
                    741: ErrorDocument     406 /adm/roles
                    742: ErrorDocument	  500 /adm/errorhandler
1.26      bowersj2  743: </Location>
                    744: 
                    745: <Location /adm/quickgrades>
                    746: PerlAccessHandler       Apache::lonacc
                    747: SetHandler perl-script
                    748: PerlHandler Apache::lonquickgrades
                    749: ErrorDocument     403 /adm/login
                    750: ErrorDocument     406 /adm/roles
                    751: ErrorDocument     500 /adm/errorhandler
1.1       harris41  752: </Location>
                    753: 
                    754: <Location /adm/groupsort>
                    755: PerlAccessHandler	Apache::lonacc
                    756: SetHandler perl-script
                    757: PerlHandler Apache::groupsort
1.29      www       758: PerlCleanupHandler Apache::groupsort::cleanup
1.1       harris41  759: ErrorDocument     403 /adm/login
                    760: ErrorDocument	  500 /adm/errorhandler
                    761: </Location>
                    762: 
                    763: <Location /adm/errorhandler>
                    764: SetHandler perl-script
                    765: PerlHandler Apache::lonerrorhandler
                    766: </Location>
                    767: 
1.7       bowersj2  768: <LocationMatch "^/adm/help/.*\.hlp$">
1.68      www       769: PerlAccessHandler	Apache::lonacc
1.7       bowersj2  770: SetHandler perl-script
                    771: PerlHandler Apache::lonhelp
                    772: </LocationMatch>
                    773: 
1.1       harris41  774: # ------------------------------------------------- Backdoor Adm Tests/Programs
                    775: 
                    776: <Location /cgi-bin/loncron.pl>
1.37      www       777: AuthName "LON-CAPA Network Administration"
                    778: AuthType Basic
                    779: AuthUserFile /home/httpd/lonTabs/htpasswd
                    780: require user lonadm
                    781: </Location>
                    782: 
                    783: <Location /cgi-bin/userstatus.pl>
1.1       harris41  784: AuthName "LON-CAPA Network Administration"
                    785: AuthType Basic
                    786: AuthUserFile /home/httpd/lonTabs/htpasswd
                    787: require user lonadm
                    788: </Location>
                    789: 
                    790: <Location /cgi-bin/lonversions.pl>
                    791: AuthName "LON-CAPA Network Administration"
                    792: AuthType Basic
                    793: AuthUserFile /home/httpd/lonTabs/htpasswd
                    794: require user lonadm
                    795: </Location>
                    796: 
                    797: <Location /cgi-bin/clusterstatus.pl>
                    798: AuthName "LON-CAPA Network Administration"
                    799: AuthType Basic
                    800: AuthUserFile /home/httpd/lonTabs/htpasswd
                    801: require user lonadm
                    802: </Location>
                    803: 
                    804: <Location /cgi-bin/metadata_keywords.pl>
                    805: AuthName "LON-CAPA Network Administration"
                    806: AuthType Basic
                    807: AuthUserFile /home/httpd/lonTabs/htpasswd
                    808: require user lonadm
1.22      www       809: </Location>
                    810: 
                    811: <Location /cgi-bin/metadata_harvest.pl>
                    812: AuthName "harvest"
                    813: AuthType Basic
                    814: AuthUserFile /home/httpd/lonTabs/htpasswd
                    815: require user  reaper
1.62      www       816: </Location>
                    817: 
                    818: <Location /cgi-bin/takeoffline.pl>
                    819: AuthName "Offline"
                    820: AuthType Basic
                    821: AuthUserFile /home/httpd/lonTabs/htpasswd
                    822: require user  offline
                    823: </Location>
                    824: 
                    825: <Location /cgi-bin/takeonline.pl>
                    826: AuthName "Offline"
                    827: AuthType Basic
                    828: AuthUserFile /home/httpd/lonTabs/htpasswd
                    829: require user  offline
1.1       harris41  830: </Location>
                    831: 
                    832: <Location /adm/test>
                    833: AuthName "LON-CAPA Network Administration"
                    834: AuthType Basic
                    835: AuthUserFile /home/httpd/lonTabs/htpasswd
                    836: require user lonadm
                    837: SetHandler perl-script
                    838: PerlAccessHandler Apache::lonacc
                    839: PerlHandler Apache::lontest
                    840: </Location>
                    841: 
                    842: # ------------------------------------------------------- Shutting down a child
                    843: 
                    844: PerlChildExitHandler Apache::lonnet::goodbye
                    845: 
                    846: #
                    847: # LON-CAPA Section (extensions to access.conf permission configuration)
                    848: #
                    849: # =========================================================== Directory Options
                    850: 
                    851: # Start out with "no"
                    852: 
                    853: <Directory />
                    854: Options None
                    855: AllowOverride None
                    856: </Directory>
                    857: 
                    858: # Yes to symbolic links and server-side includes
                    859: 
                    860: <Directory /home/httpd/html>
                    861: Options Includes FollowSymLinks
                    862: AllowOverride None
                    863: order allow,deny
                    864: allow from all
                    865: </Directory>
                    866: 
                    867: # If it is in cgi-bin, then it can be executed as a CGI script.
                    868: 
                    869: <Directory /home/httpd/cgi-bin>
                    870: AllowOverride None
                    871: Options ExecCGI
                    872: </Directory>
                    873: 
                    874: # ============================================================= Access Handlers
                    875: 
                    876: # ------------------------------------------------- Allow server-status reports
                    877: <Location /server-status>
                    878: SetHandler server-status
                    879: AuthName "LON-CAPA Network Administration"
                    880: AuthType Basic
                    881: AuthUserFile /home/httpd/lonTabs/htpasswd
                    882: require user lonadm
                    883: </Location>
                    884: 
                    885: # ------------------------ Allow LON-CAPA "low-level" connection status reports
                    886: <Location /lon-status>
                    887: AuthName "LON-CAPA Network Administration"
                    888: AuthType Basic
                    889: AuthUserFile /home/httpd/lonTabs/htpasswd
                    890: require user lonadm
                    891: </Location>
                    892: 
                    893: # ------------------- Allow access to local system documentation from localhost
                    894: Alias /doc /usr/doc
                    895: <Directory /usr/doc>
                    896: order deny,allow
                    897: deny from all
                    898: allow from localhost
                    899: Options Indexes FollowSymLinks
                    900: </Directory>
                    901: 
                    902: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
                    903: # ====================================== Internal Settings / Perl Configuration
                    904: 
1.59      www       905: PerlSetVar	 lonVersion   '<!-- VERSION -->'
1.1       harris41  906: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
                    907: PerlSetVar       lonTabDir    /home/httpd/lonTabs
                    908: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
                    909: PerlSetVar       lonIconsURL  /adm/lonIcons
                    910: PerlSetVar       londPort     5663
                    911: PerlSetVar       lonSysEMail  korte@lite.msu.edu
                    912: PerlSetVar       lonDaemons   /home/httpd/perl
                    913: PerlSetVar       lonSockDir   /home/httpd/sockets
                    914: PerlSetVar       lonDocRoot   /home/httpd/html
                    915: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
1.25      albertel  916: 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       917: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
1.43      albertel  918: PerlSetVar       lonScansDir  /home/httpd/scantron
                    919: PerlSetVar       lonScriptTimeout 10
1.70      www       920: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
                    921: PerlSetVar	 FAQHost	http://help.lon-capa.org/
1.2       harris41  922: # -----------------------------------------------------------------------------
                    923: # NOTE: lonSqlAccess key is the password for the MySQL user
                    924: # www@localhost.  This value must always be "localhostkey".
                    925: # The only security risk occurs when somebody logs in as 'www' on your system
                    926: # (in which case you have much bigger problems than whether or not they
                    927: # can access the non-authoritative loncapa database on your machine).
                    928: 
                    929: PerlSetVar       lonSqlAccess   localhostkey
                    930: 
                    931: # -----------------------------------------------------------------------------
1.36      albertel  932: # lonttpdPort is the port used by the lightweight graphics httpd server
                    933: # not the main Apache server
                    934: PerlSetVar       lonhttpdPort  8080
                    935: 
1.2       harris41  936: 
1.79      foxr      937: #   Parameters used by secure lond/lonc
                    938: 
                    939: #
                    940: #   Secure lond/lonc require ssl certificate and private
                    941: #   key files to function correctly.  The certificate
                    942: #   files need not be terribly secure, but the private key files
                    943: #   should be set up so that only www (the lonc/lond effective user)
                    944: #   can read them.
                    945: # 
                    946: #   The definition below is the full path to the directory that
                    947: #   contains the certificate and key files:
1.82      foxr      948: 
1.79      foxr      949: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
                    950: 
                    951: #
                    952: #  Secure lond/lonc require two certificates and a private host key.
                    953: #  The certificates required are that of the lonCAPA certificate authority
                    954: #  and the certificate that authority issued to this host.
                    955: #  lonnetCertificateAuthority is the name of the file that contains the
                    956: #                            lonCAPA certificate authority's certificate.
                    957: #  lonnetCertificate is the name of the file that contains the certificate
                    958: #                    issued to the host by the certificate authority.
                    959: #  Both of these variables are names of files assumed to be in 
                    960: #  lonCertificateDirectory:
                    961: 
                    962: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
                    963: PerlSetVar lonnetCertificate          lonhostcert.pem
                    964: 
                    965: #
                    966: #  To generate the request for a certificate, and to negotiate the
                    967: #  initial ssl connection, the host requires a private key.  This key
                    968: #  is created at lonCAPA install time.  Did we mention above that it
                    969: #  should be set so that only www can read it?  The variale below
                    970: #  is the name of the file relative to lonnetCertificateDirectory
                    971: #  that has the host's private key.  Did we remember to tell you to
                    972: #  keep the permissions on that file set to rw-------  (0600)?
                    973: #  
                    974: 
                    975: PerlSetVar lonnetPrivateKey         lonKey.pem
                    976: 
                    977: # Did we mention that the file described above must have
                    978: # permissions really locked down so that it can't be stolen?
                    979: 
                    980: 
                    981: 
1.2       harris41  982: 
1.8       harris41  983: # ====================================== Include machine-specific configuration
1.2       harris41  984: 
                    985: Include conf/loncapa.conf
1.61      albertel  986: 
                    987: # ================================================= Include local configuration
                    988: 
                    989: Include conf/loncapa_apache_local*.conf
1.1       harris41  990: 
                    991: # ================================================== Initiate mod_perl starting
                    992: 
                    993: PerlRequire      conf/startup.pl
1.47      albertel  994: <IfDefine !MODPERL2>
1.1       harris41  995: PerlFreshRestart On
1.47      albertel  996: </IfDefine>

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