Annotation of loncom/loncapa_apache.conf, revision 1.40

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

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