Annotation of loncom/loncapa_apache.conf, revision 1.99

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

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