Annotation of loncom/loncapa_apache.conf, revision 1.123

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

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