Annotation of loncom/loncapa_apache.conf, revision 1.120

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

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