Annotation of loncom/loncapa_apache.conf, revision 1.75

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

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