Annotation of loncom/loncapa_apache.conf, revision 1.78

1.1       harris41    1: ##
                      2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
                      3: ##
1.78    ! albertel    4: ## $Id: loncapa_apache.conf,v 1.77 2004/04/22 22:57:53 albertel Exp $
1.1       harris41    5: ##
                      6: 
                      7: #
                      8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
                      9: #
1.8       harris41   10: # ================================================================ DocumentRoot
1.1       harris41   11: 
                     12: DocumentRoot "/home/httpd/html"
                     13: 
                     14: # ======================================================================== User
                     15: 
                     16: User www
                     17: Group www
                     18: 
                     19: # ======================================================= Shared Object Modules
                     20: 
1.52      albertel   21: LoadModule perl_module       modules/libperl.so
1.47      albertel   22: <IfDefine !MODPERL2>
1.1       harris41   23: AddModule mod_perl.c
1.47      albertel   24: </IfDefine>
1.1       harris41   25: 
1.63      albertel   26: <IfDefine MODPERL2>
                     27: PerlSetVar	MODPERL2	1
                     28: </IfDefine>
1.1       harris41   29: # =============================================================== Miscellaneous
                     30: 
                     31: ServerAdmin korte@lite.msu.edu
                     32: ExtendedStatus On
                     33: #
                     34: # LON-CAPA Section (extensions to srm.conf name space servicing)
                     35: #
                     36: # ===================================================================== Aliases
                     37: 
                     38: Alias /prtspool/ /home/httpd/prtspool/
1.8       harris41   39: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
1.1       harris41   40: 
                     41: # ================================================================= Directories
                     42: 
                     43: # ------------------------------------------------------------- Access Handlers
                     44: 
1.12      www        45: PerlTransHandler	Apache::lontrans
1.60      albertel   46: <IfDefine MODPERL2>
                     47: PerlCleanupHandler	Apache::lonnet::cleanenv
                     48: </IfDefine>
1.12      www        49: 
1.45      albertel   50: #PerlWarn On
1.21      www        51: <LocationMatch "^/+res.*">
1.1       harris41   52: PerlAccessHandler       Apache::lonacc
                     53: PerlHeaderParserHandler Apache::lonrep
                     54: ErrorDocument     403 /adm/login
                     55: ErrorDocument     404 /adm/notfound.html
                     56: ErrorDocument     406 /adm/roles
1.74      www        57: ErrorDocument	  500 /adm/errorhandler
                     58: </LocationMatch>
                     59: 
                     60: <LocationMatch "^/+enc.*">
                     61: PerlAccessHandler       Apache::lonenc
                     62: ErrorDocument     403 /adm/login
1.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.76      albertel   71: <LocationMatch "^/+uploaded.*">
1.75      raeburn    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: 
1.76      albertel   78: <LocationMatch "^/+uploaded/.*\.page$">
1.75      raeburn    79: SetHandler perl-script
                     80: PerlHandler Apache::lonpage
                     81: </LocationMatch>
                     82: 
1.76      albertel   83: <LocationMatch "^/+uploaded/.*\.sequence$">
1.75      raeburn    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.78    ! albertel  238: <LocationMatch "^/+(uploaded|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.77      albertel  327: ErrorDocument     403 /adm/login
                    328: ErrorDocument	  500 /adm/errorhandler
                    329: </Location>
                    330: 
                    331: <Location /adm/pickcode>
                    332: PerlAccessHandler       Apache::lonacc
                    333: SetHandler perl-script
                    334: PerlHandler Apache::lonpickcode
1.1       harris41  335: ErrorDocument     403 /adm/login
                    336: ErrorDocument	  500 /adm/errorhandler
                    337: </Location>
                    338: 
                    339: <Location /adm/login>
                    340: SetHandler perl-script
                    341: PerlHandler Apache::lonlogin
                    342: </Location>
                    343: 
                    344: <Location /adm/logout>
                    345: PerlAccessHandler       Apache::lonacc
                    346: SetHandler perl-script
                    347: PerlHandler Apache::lonlogout
                    348: ErrorDocument     403 /adm/login
                    349: </Location>
                    350: 
                    351: <Location /adm/authenticate>
                    352: SetHandler perl-script
                    353: PerlHandler Apache::lonauth
                    354: </Location>
                    355: 
                    356: <Location /adm/annotations>
                    357: PerlAccessHandler       Apache::lonacc
                    358: SetHandler perl-script
                    359: PerlHandler Apache::admannotations
                    360: ErrorDocument     403 /adm/login
                    361: ErrorDocument	  500 /adm/errorhandler
                    362: </Location>
                    363: 
                    364: <Location /adm/bookmarks>
                    365: PerlAccessHandler       Apache::lonacc
                    366: SetHandler perl-script
                    367: PerlHandler Apache::admbookmarks
                    368: ErrorDocument     403 /adm/login
                    369: ErrorDocument	  500 /adm/errorhandler
                    370: </Location>
                    371: 
                    372: <Location /adm/flip>
                    373: PerlAccessHandler       Apache::lonacc
                    374: SetHandler perl-script
                    375: PerlHandler Apache::lonpageflip
1.30      www       376: PerlCleanupHandler Apache::lonpageflip::cleanup
1.1       harris41  377: ErrorDocument     406 /adm/roles
                    378: ErrorDocument     403 /adm/login
                    379: ErrorDocument	  500 /adm/errorhandler
                    380: </Location>
                    381: 
                    382: <Location /adm/ambiguous>
                    383: PerlAccessHandler       Apache::lonacc
                    384: SetHandler perl-script
                    385: PerlHandler Apache::lonambiguous
1.30      www       386: PerlCleanupHandler Apache::lonambiguous::cleanup
1.1       harris41  387: ErrorDocument     403 /adm/login
                    388: ErrorDocument	  500 /adm/errorhandler
                    389: </Location>
                    390: 
                    391: <Location /adm/email>
                    392: PerlAccessHandler       Apache::lonacc
                    393: SetHandler perl-script
                    394: PerlHandler Apache::lonmsg
                    395: ErrorDocument     403 /adm/login
                    396: ErrorDocument	  500 /adm/errorhandler
                    397: </Location>
                    398: 
                    399: <Location /adm/parmset>
                    400: PerlAccessHandler       Apache::lonacc
                    401: SetHandler perl-script
                    402: PerlHandler Apache::lonparmset
1.31      bowersj2  403: ErrorDocument     403 /adm/login
                    404: ErrorDocument     406 /adm/roles
                    405: ErrorDocument	  500 /adm/errorhandler
                    406: </Location>
                    407: 
                    408: <Location /adm/wizard>
                    409: PerlAccessHandler       Apache::lonacc
                    410: SetHandler perl-script
                    411: PerlHandler Apache::lonwizard
1.1       harris41  412: ErrorDocument     403 /adm/login
                    413: ErrorDocument     406 /adm/roles
                    414: ErrorDocument	  500 /adm/errorhandler
                    415: </Location>
                    416: 
                    417: <Location /adm/grades>
                    418: PerlAccessHandler       Apache::lonacc
                    419: SetHandler perl-script
                    420: PerlHandler Apache::grades
                    421: ErrorDocument     403 /adm/login
                    422: ErrorDocument     406 /adm/roles
                    423: ErrorDocument	  500 /adm/errorhandler
                    424: </Location>
                    425: 
                    426: <Location /adm/createcourse>
                    427: PerlAccessHandler       Apache::lonacc
                    428: SetHandler perl-script
                    429: PerlHandler Apache::loncreatecourse
                    430: ErrorDocument     403 /adm/login
                    431: ErrorDocument     406 /adm/roles
                    432: ErrorDocument	  500 /adm/errorhandler
1.67      raeburn   433: </Location>
                    434: 
                    435: <Location /adm/modifycourse>
                    436: PerlAccessHandler       Apache::lonacc
                    437: SetHandler perl-script
                    438: PerlHandler Apache::lonmodifycourse
                    439: ErrorDocument     403 /adm/login
                    440: ErrorDocument     406 /adm/roles
                    441: ErrorDocument     500 /adm/errorhandler
1.1       harris41  442: </Location>
                    443: 
                    444: <Location /adm/createuser>
                    445: PerlAccessHandler       Apache::lonacc
                    446: SetHandler perl-script
                    447: PerlHandler Apache::loncreateuser
                    448: ErrorDocument     403 /adm/login
                    449: ErrorDocument     406 /adm/roles
                    450: ErrorDocument	  500 /adm/errorhandler
                    451: </Location>
                    452: 
                    453: <Location /adm/publish>
                    454: PerlAccessHandler       Apache::lonacc
                    455: SetHandler perl-script
                    456: PerlHandler Apache::lonpublisher
                    457: ErrorDocument     403 /adm/login
                    458: ErrorDocument     404 /adm/notfound.html
1.18      www       459: ErrorDocument     406 /adm/unauthorized
1.1       harris41  460: ErrorDocument	  500 /adm/errorhandler
                    461: </Location>
                    462: 
1.64      albertel  463: <LocationMatch "^/+\~.*/$">
1.1       harris41  464: PerlAccessHandler       Apache::loncacc
                    465: SetHandler perl-script
                    466: PerlHandler Apache::lonpubdir
                    467: ErrorDocument     403 /adm/login
                    468: ErrorDocument     404 /adm/notfound.html
1.18      www       469: ErrorDocument     406 /adm/unauthorized
1.1       harris41  470: ErrorDocument	  500 /adm/errorhandler
                    471: </LocationMatch>
                    472: 
                    473: <Location /adm/pubdir>
                    474: PerlAccessHandler       Apache::lonacc
                    475: SetHandler perl-script
                    476: PerlHandler Apache::lonpubdir
                    477: ErrorDocument     403 /adm/login
                    478: ErrorDocument     404 /adm/notfound.html
1.18      www       479: ErrorDocument     406 /adm/unauthorized
                    480: ErrorDocument	  500 /adm/errorhandler
                    481: </Location>
                    482: 
                    483: <Location /adm/unauthorized>
                    484: PerlAccessHandler       Apache::lonacc
                    485: SetHandler perl-script
                    486: PerlHandler Apache::lonunauthorized
                    487: ErrorDocument     403 /adm/login
                    488: ErrorDocument     404 /adm/notfound.html
1.1       harris41  489: ErrorDocument	  500 /adm/errorhandler
                    490: </Location>
                    491: 
                    492: <Location /adm/retrieve>
                    493: PerlAccessHandler       Apache::lonacc
                    494: SetHandler perl-script
                    495: PerlHandler Apache::lonretrieve
                    496: ErrorDocument     403 /adm/login
                    497: ErrorDocument     404 /adm/notfound.html
1.18      www       498: ErrorDocument     406 /adm/unauthorized
1.1       harris41  499: ErrorDocument	  500 /adm/errorhandler
                    500: </Location>
                    501: 
                    502: <Location /adm/cfile>
                    503: PerlAccessHandler       Apache::lonacc
                    504: SetHandler perl-script
                    505: PerlHandler Apache::loncfile
                    506: ErrorDocument     403 /adm/login
                    507: ErrorDocument     404 /adm/notfound.html
1.18      www       508: ErrorDocument     406 /adm/unauthorized
1.1       harris41  509: ErrorDocument	  500 /adm/errorhandler
                    510: </Location>
                    511: 
                    512: <Location /adm/diff>
                    513: PerlAccessHandler       Apache::lonacc
                    514: SetHandler perl-script
                    515: PerlHandler Apache::londiff
                    516: ErrorDocument     403 /adm/login
                    517: ErrorDocument     404 /adm/notfound.html
1.18      www       518: ErrorDocument     406 /adm/unauthorized
1.1       harris41  519: ErrorDocument	  500 /adm/errorhandler
                    520: </Location>
                    521: 
                    522: <Location /adm/upload>
                    523: PerlAccessHandler       Apache::lonacc
                    524: SetHandler perl-script
                    525: PerlHandler Apache::lonupload
                    526: ErrorDocument     403 /adm/login
                    527: ErrorDocument     404 /adm/notfound.html
1.18      www       528: ErrorDocument     406 /adm/unauthorized
1.1       harris41  529: ErrorDocument	  500 /adm/errorhandler
1.72      raeburn   530: </Location>
                    531: 
1.73      raeburn   532: <Location /adm/imsimport>
                    533: PerlAccessHandler       Apache::lonacc
                    534: SetHandler perl-script
                    535: PerlHandler Apache::imsimport
                    536: ErrorDocument     403 /adm/login
                    537: ErrorDocument     404 /adm/notfound.html
                    538: ErrorDocument     406 /adm/unauthorized
                    539: ErrorDocument     500 /adm/errorhandler
                    540: </Location>
                    541: 
1.72      raeburn   542: <Location /adm/testbank>
                    543: PerlAccessHandler       Apache::lonacc
                    544: SetHandler perl-script
                    545: PerlHandler Apache::testbankimport
                    546: ErrorDocument     403 /adm/login
                    547: ErrorDocument     404 /adm/notfound.html
                    548: ErrorDocument     406 /adm/unauthorized
                    549: ErrorDocument     500 /adm/errorhandler
1.1       harris41  550: </Location>
                    551: 
                    552: <Location /adm/assesscalc>
                    553: PerlAccessHandler       Apache::lonacc
                    554: SetHandler perl-script
                    555: PerlHandler Apache::lonspreadsheet
                    556: ErrorDocument     403 /adm/login
                    557: ErrorDocument     406 /adm/roles
1.20      www       558: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  559: ErrorDocument	  500 /adm/errorhandler
                    560: </Location>
                    561: 
                    562: <Location /adm/studentcalc>
                    563: PerlAccessHandler       Apache::lonacc
                    564: SetHandler perl-script
                    565: PerlHandler Apache::lonspreadsheet
                    566: ErrorDocument     403 /adm/login
                    567: ErrorDocument     406 /adm/roles
1.20      www       568: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  569: ErrorDocument	  500 /adm/errorhandler
                    570: </Location>
                    571: 
                    572: <Location /adm/classcalc>
                    573: PerlAccessHandler       Apache::lonacc
                    574: SetHandler perl-script
                    575: PerlHandler Apache::lonspreadsheet
                    576: ErrorDocument     403 /adm/login
                    577: ErrorDocument     406 /adm/roles
1.20      www       578: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  579: ErrorDocument	  500 /adm/errorhandler
                    580: </Location>
                    581: 
                    582: <Location /adm/dropadd>
                    583: PerlAccessHandler       Apache::lonacc
                    584: SetHandler perl-script
                    585: PerlHandler Apache::londropadd
1.44      www       586: ErrorDocument     403 /adm/login
                    587: ErrorDocument     406 /adm/roles
                    588: ErrorDocument	  500 /adm/errorhandler
1.65      raeburn   589: </Location>
                    590: 
                    591: <Location /adm/populate>
                    592: PerlAccessHandler       Apache::lonacc
                    593: SetHandler perl-script
                    594: PerlHandler Apache::lonpopulate
                    595: ErrorDocument     403 /adm/login
                    596: ErrorDocument     406 /adm/roles
                    597: ErrorDocument     500 /adm/errorhandler
1.44      www       598: </Location>
                    599: 
                    600: <Location /adm/managekeys>
                    601: PerlAccessHandler       Apache::lonacc
                    602: SetHandler perl-script
                    603: PerlHandler Apache::lonmanagekeys
1.1       harris41  604: ErrorDocument     403 /adm/login
                    605: ErrorDocument     406 /adm/roles
                    606: ErrorDocument	  500 /adm/errorhandler
                    607: </Location>
                    608: 
                    609: <Location /adm/printout>
                    610: PerlAccessHandler       Apache::lonacc
                    611: SetHandler perl-script
                    612: PerlHandler Apache::lonprintout
                    613: ErrorDocument     403 /adm/login
1.20      www       614: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  615: ErrorDocument	  500 /adm/errorhandler
                    616: </Location>
                    617: 
                    618: <Location /adm/feedback>
                    619: PerlAccessHandler       Apache::lonacc
                    620: SetHandler perl-script
                    621: PerlHandler Apache::lonfeedback
1.10      www       622: ErrorDocument     403 /adm/login
                    623: ErrorDocument	  500 /adm/errorhandler
                    624: </Location>
                    625: 
                    626: <Location /adm/coursedocs>
                    627: PerlAccessHandler       Apache::lonacc
                    628: SetHandler perl-script
                    629: PerlHandler Apache::londocs
1.61      albertel  630:  PerlCleanupHandler Apache::londocs::untiehash
1.10      www       631: ErrorDocument     403 /adm/login
                    632: ErrorDocument	  500 /adm/errorhandler
1.73      raeburn   633: </Location>
                    634: 
                    635: <Location /adm/imsimportdocs>
                    636: PerlAccessHandler       Apache::lonacc
                    637: SetHandler perl-script
                    638: PerlHandler Apache::imsimportdocs
                    639: ErrorDocument     403 /adm/login
                    640: ErrorDocument     500 /adm/errorhandler
1.10      www       641: </Location>
                    642: 
                    643: <Location /adm/announcements>
                    644: PerlAccessHandler       Apache::lonacc
                    645: SetHandler perl-script
                    646: PerlHandler Apache::lonannounce
                    647: ErrorDocument     403 /adm/login
                    648: ErrorDocument	  500 /adm/errorhandler
                    649: </Location>
                    650: 
                    651: <Location /adm/chat>
                    652: PerlAccessHandler       Apache::lonacc
                    653: SetHandler perl-script
                    654: PerlHandler Apache::lonchat
1.13      www       655: ErrorDocument	  500 /adm/errorhandler
                    656: </Location>
                    657: 
                    658: <Location /adm/chatfetch>
                    659: PerlAccessHandler       Apache::lonacc
                    660: SetHandler perl-script
                    661: PerlHandler Apache::lonchatfetch
1.20      www       662: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  663: ErrorDocument	  500 /adm/errorhandler
                    664: </Location>
                    665: 
                    666: <Location /adm/evaluate>
                    667: PerlAccessHandler       Apache::lonacc
                    668: SetHandler perl-script
                    669: PerlHandler Apache::lonevaluate
                    670: ErrorDocument     403 /adm/login
                    671: ErrorDocument	  500 /adm/errorhandler
                    672: </Location>
                    673: 
                    674: <Location /adm/preferences>
                    675: PerlAccessHandler       Apache::lonacc
                    676: SetHandler perl-script
                    677: PerlHandler Apache::lonpreferences
                    678: ErrorDocument     403 /adm/login
                    679: ErrorDocument	  500 /adm/errorhandler
                    680: </Location>
                    681: 
                    682: <Location /adm/assignments>
                    683: PerlAccessHandler       Apache::lonacc
                    684: SetHandler perl-script
                    685: PerlHandler Apache::lonassignments
                    686: ErrorDocument     403 /adm/login
                    687: ErrorDocument     406 /adm/roles
                    688: ErrorDocument	  500 /adm/errorhandler
                    689: </Location>
                    690: 
                    691: <Location /adm/communicate>
                    692: PerlAccessHandler       Apache::lonacc
                    693: SetHandler perl-script
                    694: PerlHandler Apache::loncommunicate
                    695: ErrorDocument     403 /adm/login
                    696: ErrorDocument	  500 /adm/errorhandler
                    697: </Location>
                    698: 
                    699: <Location /adm/searchcat>
                    700: PerlAccessHandler       Apache::lonacc
                    701: SetHandler perl-script
                    702: PerlHandler Apache::lonsearchcat
1.28      www       703: PerlCleanupHandler Apache::lonsearchcat::cleanup
1.1       harris41  704: ErrorDocument     403 /adm/login
1.20      www       705: ErrorDocument     413 /adm/overloaded.txt
1.1       harris41  706: ErrorDocument	  500 /adm/errorhandler
                    707: </Location>
                    708: 
                    709: <Location /adm/navmaps>
                    710: PerlAccessHandler       Apache::lonacc
                    711: SetHandler perl-script
                    712: PerlHandler Apache::lonnavmaps
                    713: ErrorDocument     403 /adm/login
                    714: ErrorDocument     406 /adm/roles
                    715: ErrorDocument	  500 /adm/errorhandler
1.26      bowersj2  716: </Location>
                    717: 
                    718: <Location /adm/quickgrades>
                    719: PerlAccessHandler       Apache::lonacc
                    720: SetHandler perl-script
                    721: PerlHandler Apache::lonquickgrades
                    722: ErrorDocument     403 /adm/login
                    723: ErrorDocument     406 /adm/roles
                    724: ErrorDocument     500 /adm/errorhandler
1.1       harris41  725: </Location>
                    726: 
                    727: <Location /adm/groupsort>
                    728: PerlAccessHandler	Apache::lonacc
                    729: SetHandler perl-script
                    730: PerlHandler Apache::groupsort
1.29      www       731: PerlCleanupHandler Apache::groupsort::cleanup
1.1       harris41  732: ErrorDocument     403 /adm/login
                    733: ErrorDocument	  500 /adm/errorhandler
                    734: </Location>
                    735: 
                    736: <Location /adm/errorhandler>
                    737: SetHandler perl-script
                    738: PerlHandler Apache::lonerrorhandler
                    739: </Location>
                    740: 
1.7       bowersj2  741: <LocationMatch "^/adm/help/.*\.hlp$">
1.68      www       742: PerlAccessHandler	Apache::lonacc
1.7       bowersj2  743: SetHandler perl-script
                    744: PerlHandler Apache::lonhelp
                    745: </LocationMatch>
                    746: 
1.1       harris41  747: # ------------------------------------------------- Backdoor Adm Tests/Programs
                    748: 
                    749: <Location /cgi-bin/loncron.pl>
1.37      www       750: AuthName "LON-CAPA Network Administration"
                    751: AuthType Basic
                    752: AuthUserFile /home/httpd/lonTabs/htpasswd
                    753: require user lonadm
                    754: </Location>
                    755: 
                    756: <Location /cgi-bin/userstatus.pl>
1.1       harris41  757: AuthName "LON-CAPA Network Administration"
                    758: AuthType Basic
                    759: AuthUserFile /home/httpd/lonTabs/htpasswd
                    760: require user lonadm
                    761: </Location>
                    762: 
                    763: <Location /cgi-bin/lonversions.pl>
                    764: AuthName "LON-CAPA Network Administration"
                    765: AuthType Basic
                    766: AuthUserFile /home/httpd/lonTabs/htpasswd
                    767: require user lonadm
                    768: </Location>
                    769: 
                    770: <Location /cgi-bin/clusterstatus.pl>
                    771: AuthName "LON-CAPA Network Administration"
                    772: AuthType Basic
                    773: AuthUserFile /home/httpd/lonTabs/htpasswd
                    774: require user lonadm
                    775: </Location>
                    776: 
                    777: <Location /cgi-bin/metadata_keywords.pl>
                    778: AuthName "LON-CAPA Network Administration"
                    779: AuthType Basic
                    780: AuthUserFile /home/httpd/lonTabs/htpasswd
                    781: require user lonadm
1.22      www       782: </Location>
                    783: 
                    784: <Location /cgi-bin/metadata_harvest.pl>
                    785: AuthName "harvest"
                    786: AuthType Basic
                    787: AuthUserFile /home/httpd/lonTabs/htpasswd
                    788: require user  reaper
1.62      www       789: </Location>
                    790: 
                    791: <Location /cgi-bin/takeoffline.pl>
                    792: AuthName "Offline"
                    793: AuthType Basic
                    794: AuthUserFile /home/httpd/lonTabs/htpasswd
                    795: require user  offline
                    796: </Location>
                    797: 
                    798: <Location /cgi-bin/takeonline.pl>
                    799: AuthName "Offline"
                    800: AuthType Basic
                    801: AuthUserFile /home/httpd/lonTabs/htpasswd
                    802: require user  offline
1.1       harris41  803: </Location>
                    804: 
                    805: <Location /adm/test>
                    806: AuthName "LON-CAPA Network Administration"
                    807: AuthType Basic
                    808: AuthUserFile /home/httpd/lonTabs/htpasswd
                    809: require user lonadm
                    810: SetHandler perl-script
                    811: PerlAccessHandler Apache::lonacc
                    812: PerlHandler Apache::lontest
                    813: </Location>
                    814: 
                    815: # ------------------------------------------------------- Shutting down a child
                    816: 
                    817: PerlChildExitHandler Apache::lonnet::goodbye
                    818: 
                    819: #
                    820: # LON-CAPA Section (extensions to access.conf permission configuration)
                    821: #
                    822: # =========================================================== Directory Options
                    823: 
                    824: # Start out with "no"
                    825: 
                    826: <Directory />
                    827: Options None
                    828: AllowOverride None
                    829: </Directory>
                    830: 
                    831: # Yes to symbolic links and server-side includes
                    832: 
                    833: <Directory /home/httpd/html>
                    834: Options Includes FollowSymLinks
                    835: AllowOverride None
                    836: order allow,deny
                    837: allow from all
                    838: </Directory>
                    839: 
                    840: # If it is in cgi-bin, then it can be executed as a CGI script.
                    841: 
                    842: <Directory /home/httpd/cgi-bin>
                    843: AllowOverride None
                    844: Options ExecCGI
                    845: </Directory>
                    846: 
                    847: # ============================================================= Access Handlers
                    848: 
                    849: # ------------------------------------------------- Allow server-status reports
                    850: <Location /server-status>
                    851: SetHandler server-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 LON-CAPA "low-level" connection status reports
                    859: <Location /lon-status>
                    860: AuthName "LON-CAPA Network Administration"
                    861: AuthType Basic
                    862: AuthUserFile /home/httpd/lonTabs/htpasswd
                    863: require user lonadm
                    864: </Location>
                    865: 
                    866: # ------------------- Allow access to local system documentation from localhost
                    867: Alias /doc /usr/doc
                    868: <Directory /usr/doc>
                    869: order deny,allow
                    870: deny from all
                    871: allow from localhost
                    872: Options Indexes FollowSymLinks
                    873: </Directory>
                    874: 
                    875: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
                    876: # ====================================== Internal Settings / Perl Configuration
                    877: 
1.59      www       878: PerlSetVar	 lonVersion   '<!-- VERSION -->'
1.1       harris41  879: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
                    880: PerlSetVar       lonTabDir    /home/httpd/lonTabs
                    881: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
                    882: PerlSetVar       lonIconsURL  /adm/lonIcons
                    883: PerlSetVar       londPort     5663
                    884: PerlSetVar       lonSysEMail  korte@lite.msu.edu
                    885: PerlSetVar       lonDaemons   /home/httpd/perl
                    886: PerlSetVar       lonSockDir   /home/httpd/sockets
                    887: PerlSetVar       lonDocRoot   /home/httpd/html
                    888: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
1.25      albertel  889: 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       890: PerlSetVar       lonTextBrowsers opera:windows\s+ce:lynx
1.43      albertel  891: PerlSetVar       lonScansDir  /home/httpd/scantron
                    892: PerlSetVar       lonScriptTimeout 10
1.70      www       893: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
                    894: PerlSetVar	 FAQHost	http://help.lon-capa.org/
1.2       harris41  895: # -----------------------------------------------------------------------------
                    896: # NOTE: lonSqlAccess key is the password for the MySQL user
                    897: # www@localhost.  This value must always be "localhostkey".
                    898: # The only security risk occurs when somebody logs in as 'www' on your system
                    899: # (in which case you have much bigger problems than whether or not they
                    900: # can access the non-authoritative loncapa database on your machine).
                    901: 
                    902: PerlSetVar       lonSqlAccess   localhostkey
                    903: 
                    904: # -----------------------------------------------------------------------------
1.36      albertel  905: # lonttpdPort is the port used by the lightweight graphics httpd server
                    906: # not the main Apache server
                    907: PerlSetVar       lonhttpdPort  8080
                    908: 
1.2       harris41  909: 
                    910: 
1.8       harris41  911: # ====================================== Include machine-specific configuration
1.2       harris41  912: 
                    913: Include conf/loncapa.conf
1.61      albertel  914: 
                    915: # ================================================= Include local configuration
                    916: 
                    917: Include conf/loncapa_apache_local*.conf
1.1       harris41  918: 
                    919: # ================================================== Initiate mod_perl starting
                    920: 
                    921: PerlRequire      conf/startup.pl
1.47      albertel  922: <IfDefine !MODPERL2>
1.1       harris41  923: PerlFreshRestart On
1.47      albertel  924: </IfDefine>

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