Annotation of loncom/loncapa_apache.conf, revision 1.74

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

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