File:  [LON-CAPA] / loncom / loncapa_apache.conf
Revision 1.252: download - view: text, annotated - select for diffs
Thu Feb 23 21:32:15 2017 UTC (7 years, 2 months ago) by damieng
Branches: MAIN
CVS tags: HEAD
daxeopen: added support for / and /res directory listing

    1: ##
    2: ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
    3: ##
    4: 
    5: # $Id: loncapa_apache.conf,v 1.252 2017/02/23 21:32:15 damieng Exp $
    6: 
    7: #
    8: # LON-CAPA Section (extensions to httpd.conf daemon configuration)
    9: #
   10: # ================================================================ DocumentRoot
   11: 
   12: DocumentRoot "/home/httpd/html"
   13: 
   14: # ======================================================================== User
   15: 
   16: User www
   17: Group www
   18: 
   19: # ======================================================= Shared Object Modules
   20: 
   21: <IfModule !perl_module>
   22:     LoadModule perl_module       modules/libperl.so
   23: </IfModule>
   24: <IfDefine !MODPERL2>
   25: AddModule mod_perl.c
   26: </IfDefine>
   27: 
   28: <IfDefine MODPERL2>
   29: PerlSetVar	MODPERL2	1
   30: </IfDefine>
   31: # =============================================================== Miscellaneous
   32: 
   33: ServerAdmin consortium@loncapa.org
   34: ExtendedStatus On
   35: #
   36: # LON-CAPA Section (extensions to srm.conf name space servicing)
   37: #
   38: # ===================================================================== Aliases
   39: 
   40: Alias /zipspool/ /home/httpd/zipspool/
   41: Alias /prtspool/ /home/httpd/prtspool/
   42: Alias /captchaspool/ /home/httpd/captchaspool/
   43: Alias /webdav/ /home/httpd/html/priv/
   44: ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
   45: <IfModule mod_dav_fs.c>
   46:     DAVLockDB /home/httpd/webdav/DAVLock
   47: </IfModule>
   48: 
   49: # ================================================================= Directories
   50: 
   51: # ------------------------------------------------------------- Access Handlers
   52: 
   53: PerlTransHandler	Apache::lontrans
   54: PerlCleanupHandler	Apache::lonacc::cleanup
   55: 
   56: PerlAuthenHandler Apache::checkauthen
   57: PerlSetVar lonOtherAuthen no
   58: 
   59: <IfModule mod_shib>
   60:     PerlAuthenHandler Apache::lonshibauth
   61:     PerlSetVar lonOtherAuthen yes
   62:     PerlSetVar lonOtherAuthenType Shibboleth
   63: </IfModule>
   64: 
   65: #PerlWarn On
   66: <LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$">
   67: PerlAuthzHandler	'sub { return OK }' 
   68: </LocationMatch>
   69: 
   70: # Send proper expires header to avoid unnecessary HTTP request for static content
   71: <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/res/adm/pages|/ckeditor|/adm/jpicker|/adm/countdown|/adm/spellchecker|/adm/nicescroll|/adm/MathJax|/adm/daxe)">
   72:         ExpiresActive On
   73:         ExpiresDefault "access plus 12 hours"
   74:         Header set Cache-Control "public, no-transform"
   75: </LocationMatch>
   76: 
   77: <LocationMatch "^/+res.*">
   78: 
   79: AuthType LONCAPA
   80: Require valid-user
   81: 
   82: PerlAccessHandler      Apache::publiccheck
   83: PerlAuthzHandler       Apache::lonacc
   84: PerlHeaderParserHandler Apache::lonrep
   85: ErrorDocument     403 /adm/login
   86: ErrorDocument     404 /adm/notfound.html
   87: ErrorDocument     406 /adm/roles
   88: ErrorDocument	  500 /adm/errorhandler
   89: </LocationMatch>
   90: 
   91: 
   92: <LocationMatch "/.*">
   93: </LocationMatch>
   94: 
   95: 
   96: <LocationMatch "^/+enc.*">
   97: SetHandler perl-script
   98: PerlHandler       Apache::lonencurl
   99: ErrorDocument     403 /adm/login
  100: ErrorDocument     404 /adm/notfound.html
  101: ErrorDocument     406 /adm/roles
  102: ErrorDocument	  500 /adm/errorhandler
  103: </LocationMatch>
  104: 
  105: <Location /adm/portfolio>
  106: AuthType LONCAPA
  107: Require valid-user
  108: PerlAuthzHandler Apache::lonacc
  109: SetHandler perl-script
  110: PerlHandler Apache::portfolio
  111: </Location>
  112: 
  113: <Location /adm/coursegrp_portfolio>
  114: AuthType LONCAPA
  115: Require valid-user
  116: PerlAuthzHandler Apache::lonacc
  117: SetHandler perl-script
  118: PerlHandler Apache::portfolio
  119: </Location>
  120: 
  121: <Location /adm/pdfupload>
  122: AuthType LONCAPA
  123: Require valid-user
  124: PerlAuthzHandler Apache::lonacc
  125: SetHandler perl-script
  126: PerlHandler             Apache::lonpdfupload
  127: ErrorDocument     403 /adm/login
  128: ErrorDocument     404 /adm/notfound.html
  129: ErrorDocument     406 /adm/roles
  130: ErrorDocument     500 /adm/errorhandler
  131: </Location>
  132: 
  133: <LocationMatch "^/+userfiles.*">
  134: PerlAccessHandler       Apache::lontokacc
  135: PerlCleanupHandler	Apache::lontokacc::removefile
  136: PerlCleanupHandler	Apache::lonacc::cleanup
  137: </LocationMatch>
  138: 
  139: <LocationMatch "^/+uploaded.*">
  140: AuthType LONCAPA
  141: Require valid-user
  142: PerlAuthzHandler	Apache::lonacc
  143: PerlHandler 		Apache::londatecheck
  144: PerlHandler  		Apache::lonipcheck
  145: PerlHeaderParserHandler Apache::lonuploadrep
  146: ErrorDocument     403 /adm/login
  147: ErrorDocument     404 /adm/notfound.html
  148: ErrorDocument     406 /adm/roles
  149: ErrorDocument	  500 /adm/errorhandler
  150: </LocationMatch>
  151: 
  152: <LocationMatch "^/+editupload.*">
  153: AuthType LONCAPA
  154: Require valid-user
  155: PerlAuthzHandler	Apache::lonacc
  156: ErrorDocument     403 /adm/login
  157: ErrorDocument     406 /adm/roles
  158: ErrorDocument	  500 /adm/errorhandler
  159: </LocationMatch>
  160: 
  161: <LocationMatch "^/+uploaded/.*/.*/internal/.*">
  162: PerlAuthenHandler	Apache::lonuploadedacc
  163: PerlAuthzHandler	Apache::lonuploadedacc::skip_phase
  164: PerlAccessHandler	Apache::lonuploadedacc::skip_phase
  165: </LocationMatch>
  166: 
  167: <LocationMatch "^/+uploaded/.*/.*/portfolio/.*">
  168: PerlAccessHandler      Apache::publiccheck
  169: AuthType LONCAPA
  170: Require valid-user
  171: PerlAuthzHandler       Apache::lonacc
  172: </LocationMatch>
  173: 
  174: <LocationMatch "^/+uploaded/.*/.*/groups/.*/portfolio/.*">
  175: PerlAccessHandler      Apache::publiccheck
  176: AuthType LONCAPA
  177: Require valid-user
  178: PerlAuthzHandler       Apache::lonacc
  179: </LocationMatch>
  180: 
  181: <LocationMatch "^/+uploaded/.*\.page$">
  182: SetHandler perl-script
  183: PerlHandler Apache::lonpage
  184: </LocationMatch>
  185: 
  186: <LocationMatch "^/+uploaded/.*\.sequence$">
  187: SetHandler perl-script
  188: PerlHandler Apache::lonsequence
  189: </LocationMatch>
  190: 
  191: <LocationMatch "^/+public/.*/syllabus$">
  192: PerlAccessHandler      Apache::publiccheck
  193: AuthType LONCAPA
  194: Require valid-user
  195: PerlAuthzHandler	Apache::lonacc
  196: SetHandler              perl-script
  197: PerlHandler             Apache::lonsyllabus
  198: ErrorDocument     404 /adm/notfound.html
  199: ErrorDocument	  500 /adm/errorhandler
  200: </LocationMatch>
  201: 
  202: <LocationMatch "^/+(public|adm)/.*(\.rss|_rss\.html)$">
  203: PerlAccessHandler      Apache::publiccheck
  204: AuthType LONCAPA
  205: Require valid-user
  206: PerlAuthzHandler	Apache::lonacc
  207: SetHandler              perl-script
  208: PerlHandler             Apache::lonrss
  209: ErrorDocument     404 /adm/notfound.html
  210: ErrorDocument	  500 /adm/errorhandler
  211: </LocationMatch>
  212: 
  213: <LocationMatch "^/adm/.*/aboutme$">
  214: AuthType LONCAPA
  215: Require valid-user
  216: PerlAuthzHandler	Apache::lonacc
  217: SetHandler              perl-script
  218: PerlHandler             Apache::lonaboutme
  219: ErrorDocument     404 /adm/notfound.html
  220: ErrorDocument     406 /adm/notinit.html
  221: ErrorDocument	  500 /adm/errorhandler
  222: </LocationMatch>
  223: 
  224: <LocationMatch "^/adm/.*/aboutme/portfolio$">
  225: PerlAccessHandler       Apache::publiccheck
  226: AuthType LONCAPA
  227: Require valid-user
  228: PerlAuthzHandler	Apache::lonacc
  229: SetHandler              perl-script
  230: PerlHandler             Apache::lonaboutme
  231: ErrorDocument     404 /adm/notfound.html
  232: ErrorDocument     406 /adm/notinit.html
  233: ErrorDocument	  500 /adm/errorhandler
  234: </LocationMatch>
  235: 
  236: <LocationMatch "^/adm/.*/smppg$">
  237: AuthType LONCAPA
  238: Require valid-user
  239: PerlAuthzHandler	Apache::lonacc
  240: SetHandler              perl-script
  241: PerlHandler             Apache::londatecheck
  242: PerlHandler		Apache::lonipcheck
  243: PerlHandler             Apache::lonsimplepage
  244: ErrorDocument     404 /adm/notfound.html
  245: ErrorDocument     406 /adm/notinit.html
  246: ErrorDocument	  500 /adm/errorhandler
  247: </LocationMatch>
  248: 
  249: <LocationMatch "^/adm/.*/bulletinboard$">
  250: AuthType LONCAPA
  251: Require valid-user
  252: PerlAuthzHandler	Apache::lonacc
  253: SetHandler              perl-script
  254: PerlHandler             Apache::londatecheck
  255: PerlHandler		Apache::lonipcheck
  256: PerlHandler             Apache::lonbulletin
  257: ErrorDocument     404 /adm/notfound.html
  258: ErrorDocument     406 /adm/notinit.html
  259: ErrorDocument	  500 /adm/errorhandler
  260: </LocationMatch>
  261: 
  262: <LocationMatch "\.problem/smpedit$">
  263: AuthType LONCAPA
  264: Require valid-user
  265: PerlAuthzHandler	Apache::lonacc
  266: SetHandler              perl-script
  267: PerlHandler             Apache::lonsimpleproblemedit
  268: ErrorDocument     404 /adm/notfound.html
  269: ErrorDocument     406 /adm/notinit.html
  270: ErrorDocument	  500 /adm/errorhandler
  271: </LocationMatch>
  272: 
  273: <LocationMatch "^/adm/.*/exttools?$">
  274: AuthType LONCAPA
  275: Require valid-user
  276: PerlAuthzHandler        Apache::lonacc
  277: SetHandler              perl-script
  278: PerlHandler             Apache::londatecheck
  279: PerlHandler             Apache::lonipcheck
  280: PerlHandler             Apache::lonexttool
  281: ErrorDocument     404 /adm/notfound.html
  282: ErrorDocument     406 /adm/notinit.html
  283: ErrorDocument     500 /adm/errorhandler
  284: </LocationMatch>
  285: 
  286: <LocationMatch "^/adm/placement$">
  287: AuthType LONCAPA
  288: Require valid-user
  289: PerlAuthzHandler        Apache::lonacc
  290: SetHandler              perl-script
  291: PerlHandler             Apache::lonplacementtest
  292: ErrorDocument     404 /adm/notfound.html
  293: ErrorDocument     406 /adm/notinit.html
  294: ErrorDocument     500 /adm/errorhandler
  295: </LocationMatch>
  296: 
  297: <LocationMatch "^/+priv/.*">
  298: AuthType LONCAPA
  299: Require valid-user
  300: PerlAuthzHandler Apache::loncacc
  301: SetHandler        perl-script
  302: ErrorDocument     403 /adm/login
  303: ErrorDocument     404 /adm/notfound.html
  304: ErrorDocument     406 /adm/unauthorized
  305: ErrorDocument	  500 /adm/errorhandler
  306: </LocationMatch>
  307: 
  308: <LocationMatch "^/+webdav/[\w\-.]+/\w[\w.\-\@]+/">
  309:   <IfModule mod_dav.c>
  310:     <IfModule mod_ssl.c>
  311:       AuthType Basic
  312:       AuthName "LONCAPA username,domain"
  313:       Require valid-user
  314:       SSLRequireSSL
  315:       PerlAuthenHandler Apache::lonwebdavauth
  316:       PerlAuthzHandler Apache::lonwebdavacc
  317:       Dav On
  318:       DirectoryIndex index.missing
  319:       Options Indexes FollowSymLinks
  320:       ErrorDocument     403 /adm/nowebdav.html
  321:       ErrorDocument     404 /adm/notfound.html
  322:       ErrorDocument     406 /adm/unauthorized
  323:       ErrorDocument     500 /adm/errorhandler
  324:     </IfModule>
  325:     <IfModule !mod_ssl.c>
  326:       <IfModule mod_rewrite.c>
  327:         RewriteEngine on
  328:         RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
  329:       </IfModule>
  330:     </IfModule>
  331:   </IfModule>
  332:   <IfModule !mod_dav.c>
  333:     <IfModule mod_rewrite.c>
  334:       RewriteEngine on
  335:       RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L]
  336:     </IfModule>
  337:   </IfModule>
  338: </LocationMatch>
  339: 
  340: <LocationMatch "^/+raw.*">
  341: PerlAccessHandler Apache::lonracc
  342: </LocationMatch>
  343: 
  344: <LocationMatch "^/adm/helper/.*\.helper$">
  345: AuthType LONCAPA
  346: Require valid-user
  347: PerlAuthzHandler  Apache::lonacc
  348: SetHandler        perl-script
  349: PerlHandler       Apache::lonhelper
  350: ErrorDocument     403 /adm/login
  351: ErrorDocument     404 /adm/notfound.html
  352: ErrorDocument     406 /adm/unauthorized
  353: ErrorDocument     500 /adm/errorhandler
  354: </LocationMatch>
  355: 
  356: <LocationMatch "/prtspool">
  357: AuthType LONCAPA
  358: Require valid-user
  359: PerlAuthzHandler Apache::lonacc
  360: ErrorDocument     403 /adm/login
  361: ErrorDocument     404 /adm/notfound.html
  362: ErrorDocument     406 /adm/roles
  363: ErrorDocument     413 /adm/overloaded.txt
  364: ErrorDocument	  500 /adm/errorhandler
  365: </LocationMatch>
  366: 
  367: <LocationMatch "/zipspool">
  368: AuthType LONCAPA
  369: Require valid-user
  370: PerlAuthzHandler Apache::lonacc
  371: ErrorDocument     403 /adm/login
  372: ErrorDocument     404 /adm/notfound.html
  373: ErrorDocument     406 /adm/roles
  374: ErrorDocument     413 /adm/overloaded.txt
  375: ErrorDocument	  500 /adm/errorhandler
  376: </LocationMatch>
  377: # ------------------------------------------------------------------------- RAT
  378: 
  379: <LocationMatch "^/+priv/.*\.sequence$">
  380: SetHandler perl-script
  381: PerlHandler Apache::lonratedt
  382: </LocationMatch>
  383: 
  384: <LocationMatch "^/+priv/.*\.page$">
  385: SetHandler perl-script
  386: PerlHandler Apache::lonratedt
  387: </LocationMatch>
  388: 
  389: <LocationMatch "^/+priv/.*\/ratserver$">
  390: SetHandler perl-script
  391: PerlHandler Apache::lonratsrv
  392: </LocationMatch>
  393: 
  394: <LocationMatch "^/+priv/.*\/adveditmenu$">
  395: SetHandler perl-script
  396: PerlHandler Apache::lonratmenu
  397: </LocationMatch>
  398: 
  399: <Location /adm/ratparms>
  400: AuthType LONCAPA
  401: Require valid-user
  402: PerlAuthzHandler       Apache::lonacc
  403: SetHandler perl-script
  404: PerlHandler Apache::lonratparms
  405: ErrorDocument     403 /adm/login
  406: ErrorDocument	  500 /adm/errorhandler
  407: </Location>
  408: 
  409: # --------------------------------------------- Resource Space Content Handlers
  410: 
  411: <LocationMatch "^/+res.*/$">
  412: SetHandler perl-script
  413: PerlHandler Apache::lonindexer
  414: PerlCleanupHandler Apache::lonindexer::cleanup
  415: PerlCleanupHandler	Apache::lonacc::cleanup
  416: </LocationMatch>
  417: 
  418: <LocationMatch "^/+res.*\.tex$">
  419: SetHandler perl-script
  420: PerlHandler Apache::lontex
  421: </LocationMatch>
  422: 
  423: <LocationMatch "^/+res/.*\.page$">
  424: SetHandler perl-script
  425: PerlHandler Apache::lonpage
  426: </LocationMatch>
  427: 
  428: <LocationMatch "^/+res/.*\.sequence$">
  429: SetHandler perl-script
  430: PerlHandler Apache::lonsequence
  431: </LocationMatch>
  432: 
  433: <LocationMatch "^/+(res|priv|public|uploaded|editupload|adm)/.*\.meta$">
  434: PerlAccessHandler      Apache::publiccheck
  435: SetHandler perl-script
  436: PerlHandler Apache::lonmeta
  437: ErrorDocument     413 /adm/overloaded.txt
  438: </LocationMatch>
  439: 
  440: <LocationMatch "^/adm/bombs/">
  441: AuthType LONCAPA
  442: Require valid-user
  443: PerlAuthzHandler Apache::lonacc
  444: SetHandler perl-script
  445: PerlHandler Apache::lonmeta
  446: </LocationMatch>
  447: 
  448: 
  449: 
  450: <LocationMatch "^/+(res|priv)/.*\.rights$">
  451: SetHandler perl-script
  452: PerlHandler Apache::lonrights
  453: </LocationMatch>
  454: 
  455: <LocationMatch "^/+(uploaded|res|priv)/.*\.(xml|html|htm|xhtml|xhtm|sty)$">
  456: SetHandler perl-script
  457: PerlHandler Apache::londatecheck
  458: PerlHandler Apache::lonipcheck
  459: PerlHandler Apache::lonxml
  460: </LocationMatch>
  461: 
  462: <LocationMatch "^/+(res|priv).*\.(task|problem|exam|quiz|assess|survey|form|library)$">
  463: SetHandler perl-script
  464: PerlHandler Apache::lonhomework
  465: </LocationMatch>
  466: 
  467: <LocationMatch "^/+priv/.*\.(js|css|txt|tex)$">
  468: SetHandler perl-script
  469: PerlHandler Apache::lonxml
  470: </LocationMatch>
  471: 
  472: <LocationMatch "^/daxe(page|open)/priv/">
  473: AuthType LONCAPA
  474: Require valid-user
  475: PerlAuthzHandler       Apache::loncacc
  476: ErrorDocument     403 /adm/login
  477: ErrorDocument     404 /adm/notfound.html
  478: ErrorDocument     406 /adm/unauthorized
  479: ErrorDocument     500 /adm/errorhandler
  480: </LocationMatch>
  481: 
  482: <LocationMatch "^/daxe(page|open)/uploaded/">
  483: AuthType LONCAPA
  484: Require valid-user
  485: PerlAuthzHandler       Apache::lonacc
  486: ErrorDocument     403 /adm/login
  487: ErrorDocument     404 /adm/notfound.html
  488: ErrorDocument     406 /adm/unauthorized
  489: ErrorDocument     500 /adm/errorhandler
  490: </LocationMatch>
  491: 
  492: <LocationMatch "^/daxepage/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$">
  493: SetHandler perl-script
  494: PerlHandler Apache::daxepage
  495: </LocationMatch>
  496: 
  497: <LocationMatch "^/daxepage/uploaded/[^/]+/[^/]+/.*html?$">
  498: SetHandler perl-script
  499: PerlHandler Apache::daxepage
  500: </LocationMatch>
  501: 
  502: <LocationMatch "^/daxeopen/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$">
  503: SetHandler perl-script
  504: PerlHandler Apache::daxeopen
  505: </LocationMatch>
  506: 
  507: <LocationMatch "^/daxeopen/$">
  508: SetHandler perl-script
  509: PerlHandler Apache::daxeopen
  510: </LocationMatch>
  511: 
  512: <LocationMatch "^/daxeopen/res/(.+/)?$">
  513: SetHandler perl-script
  514: PerlHandler Apache::daxeopen
  515: </LocationMatch>
  516: 
  517: <LocationMatch "^/daxeopen/priv/.*/$">
  518: SetHandler perl-script
  519: PerlHandler Apache::daxeopen
  520: </LocationMatch>
  521: 
  522: <LocationMatch "^/daxeopen/uploaded/[^/]+/[^/]+/.*html?$">
  523: SetHandler perl-script
  524: PerlHandler Apache::daxeopen
  525: </LocationMatch>
  526: 
  527: <LocationMatch "(?i)^/daxeopen/priv/.+\.(?!task$|problem$|exam$|quiz$|assess$|survey$|library$|xml$|html$|htm$|xhtml$|xhtm$)[^.]*$">
  528: <IfModule mod_rewrite.c>
  529:   RewriteEngine on
  530:   RewriteRule /daxeopen/(.*) /$1
  531: </IfModule>
  532: </LocationMatch>
  533: 
  534: <LocationMatch "(?i)^/daxeopen/(res/.*\.(jpg|jpeg|gif|png|svg))$">
  535: <IfModule mod_rewrite.c>
  536:   RewriteEngine on
  537:   RewriteRule /daxeopen/(.*) /$1
  538: </IfModule>
  539: </LocationMatch>
  540: 
  541: <LocationMatch "^/daxesave$">
  542: AuthType LONCAPA
  543: Require valid-user
  544: PerlAuthzHandler       Apache::lonacc
  545: SetHandler perl-script
  546: PerlHandler Apache::daxesave
  547: </LocationMatch>
  548: 
  549: <Location /adm/coursepub>
  550: AuthType LONCAPA
  551: Require valid-user
  552: PerlAuthzHandler Apache::lonacc
  553: SetHandler perl-script
  554: PerlHandler Apache::loncoursepub
  555: ErrorDocument     404 /adm/notfound.html
  556: ErrorDocument     500 /adm/errorhandler
  557: </Location>
  558: 
  559: <LocationMatch "^/adm/wrapper/">
  560: AuthType LONCAPA
  561: Require valid-user
  562: PerlAuthzHandler       Apache::lonacc
  563: PerlHandler Apache::londatecheck
  564: PerlHandler Apache::lonipcheck
  565: SetHandler perl-script
  566: PerlHandler Apache::lonwrapper
  567: ErrorDocument     403 /adm/login
  568: ErrorDocument	  500 /adm/errorhandler
  569: </LocationMatch>
  570: 
  571: <LocationMatch "^/adm/source">
  572: AuthType LONCAPA
  573: Require valid-user
  574: PerlAuthzHandler       Apache::lonacc
  575: SetHandler perl-script
  576: PerlHandler Apache::lonsource
  577: ErrorDocument     403 /adm/login
  578: ErrorDocument     406 /adm/roles
  579: ErrorDocument	  500 /adm/errorhandler
  580: </LocationMatch>
  581: 
  582: 
  583: <LocationMatch "^/adm/localize/">
  584: AuthType LONCAPA
  585: Require valid-user
  586: PerlAuthzHandler       Apache::lonacc
  587: SetHandler perl-script
  588: PerlHandler Apache::lonlocalize
  589: ErrorDocument     403 /adm/login
  590: ErrorDocument	  500 /adm/errorhandler
  591: </LocationMatch>
  592: 
  593: # -------------------------------------------------------------- Admin Programs
  594: 
  595: <Location /adm/randomlabel.png>
  596: AuthType LONCAPA
  597: Require valid-user
  598: PerlAuthzHandler       Apache::lonacc
  599: SetHandler perl-script
  600: PerlHandler Apache::randomlylabel
  601: ErrorDocument     403 /adm/login
  602: ErrorDocument	  500 /adm/errorhandler
  603: </Location>
  604: 
  605: <Location /adm/imagechoice>
  606: AuthType LONCAPA
  607: Require valid-user
  608: PerlAuthzHandler       Apache::lonacc
  609: SetHandler perl-script
  610: PerlHandler Apache::imagechoice
  611: ErrorDocument     403 /adm/login
  612: ErrorDocument	  500 /adm/errorhandler
  613: </Location>
  614: 
  615: <Location /adm/searchcourse>
  616: AuthType LONCAPA
  617: Require valid-user
  618: PerlAuthzHandler       Apache::lonacc
  619: SetHandler perl-script
  620: PerlHandler Apache::lonsearchcourse
  621: ErrorDocument     403 /adm/login
  622: ErrorDocument     500 /adm/errorhandler
  623: </Location>
  624: 
  625: <Location /adm/indexcourse>
  626: AuthType LONCAPA
  627: Require valid-user
  628: PerlAuthzHandler       Apache::lonacc
  629: SetHandler perl-script
  630: PerlHandler Apache::lonindexcourse
  631: ErrorDocument     403 /adm/login
  632: ErrorDocument     500 /adm/errorhandler
  633: </Location>
  634: 
  635: <Location /adm/statistics>
  636: AuthType LONCAPA
  637: Require valid-user
  638: PerlAuthzHandler       Apache::lonacc
  639: SetHandler perl-script
  640: PerlHandler Apache::lonstatistics
  641: ErrorDocument     403 /adm/login
  642: ErrorDocument     413 /adm/overloaded.txt
  643: ErrorDocument	  500 /adm/errorhandler
  644: </Location>
  645: 
  646: <Location /adm/trackstudent>
  647: AuthType LONCAPA
  648: Require valid-user
  649: PerlAuthzHandler       Apache::lonacc
  650: SetHandler perl-script
  651: PerlHandler Apache::lontrackstudent
  652: ErrorDocument     403 /adm/login
  653: ErrorDocument     413 /adm/overloaded.txt
  654: ErrorDocument	  500 /adm/errorhandler
  655: </Location>
  656: 
  657: <Location /adm/roles>
  658: AuthType LONCAPA
  659: Require valid-user
  660: PerlAuthzHandler       Apache::lonacc
  661: SetHandler perl-script
  662: PerlHandler Apache::lonroles
  663: ErrorDocument     403 /adm/login
  664: ErrorDocument     409 /adm/preferences?action=lockwarning
  665: ErrorDocument	  500 /adm/errorhandler
  666: </Location>
  667: 
  668: <Location /adm/menu>
  669: AuthType LONCAPA
  670: Require valid-user
  671: PerlAuthzHandler       Apache::lonacc
  672: SetHandler perl-script
  673: PerlHandler Apache::lonmainmenu
  674: ErrorDocument     403 /adm/login
  675: ErrorDocument	  500 /adm/errorhandler
  676: </Location>
  677: 
  678: <Location /adm/pickresource>
  679: AuthType LONCAPA
  680: Require valid-user
  681: PerlAuthzHandler       Apache::lonacc
  682: SetHandler perl-script
  683: PerlHandler Apache::lonpickresource
  684: ErrorDocument     403 /adm/login
  685: ErrorDocument     500 /adm/errorhandler
  686: </Location>
  687: 
  688: <Location /adm/pickauthor>
  689: AuthType LONCAPA
  690: Require valid-user
  691: PerlAuthzHandler       Apache::lonacc
  692: SetHandler perl-script
  693: PerlHandler Apache::lonpickauthor
  694: ErrorDocument     403 /adm/login
  695: ErrorDocument     500 /adm/errorhandler
  696: </Location>
  697: 
  698: <Location /adm/pickstudent>
  699: AuthType LONCAPA
  700: Require valid-user
  701: PerlAuthzHandler       Apache::lonacc
  702: SetHandler perl-script
  703: PerlHandler Apache::lonpickstudent
  704: ErrorDocument     403 /adm/login
  705: ErrorDocument	  500 /adm/errorhandler
  706: </Location>
  707: 
  708: <Location /adm/pickuser>
  709: AuthType LONCAPA
  710: Require valid-user
  711: PerlAuthzHandler       Apache::lonacc
  712: SetHandler perl-script
  713: PerlHandler Apache::lonpickuser
  714: ErrorDocument     403 /adm/login
  715: ErrorDocument     406 /adm/roles
  716: ErrorDocument     500 /adm/errorhandler
  717: </Location>
  718: 
  719: <Location /adm/pickcourse>
  720: AuthType LONCAPA
  721: Require valid-user
  722: PerlAuthzHandler       Apache::lonacc
  723: SetHandler perl-script
  724: PerlHandler Apache::lonpickcourse
  725: ErrorDocument     403 /adm/login
  726: ErrorDocument	  500 /adm/errorhandler
  727: </Location>
  728: 
  729: <Location /adm/pickcode>
  730: AuthType LONCAPA
  731: Require valid-user
  732: PerlAuthzHandler       Apache::lonacc
  733: SetHandler perl-script
  734: PerlHandler Apache::lonpickcode
  735: ErrorDocument     403 /adm/login
  736: ErrorDocument	  500 /adm/errorhandler
  737: </Location>
  738: 
  739: <Location /adm/dependencies>
  740: AuthType LONCAPA
  741: Require valid-user
  742: PerlAuthzHandler       Apache::lonacc
  743: SetHandler perl-script
  744: PerlHandler Apache::londependencies
  745: ErrorDocument     403 /adm/login
  746: ErrorDocument     406 /adm/roles
  747: ErrorDocument     500 /adm/errorhandler
  748: </Location>
  749: 
  750: <Location /adm/login>
  751: SetHandler perl-script
  752: PerlHandler Apache::lonlogin
  753: </Location>
  754: 
  755: <Location /adm/restrictedaccess>
  756: PerlAccessHandler      Apache::publiccheck
  757: AuthType LONCAPA
  758: Require valid-user
  759: PerlAuthzHandler       Apache::lonacc
  760: SetHandler perl-script
  761: PerlHandler Apache::restrictedaccess
  762: ErrorDocument	  500 /adm/errorhandler
  763: </Location>
  764: 
  765: <Location /adm/blockedaccess>
  766: PerlAccessHandler      Apache::publiccheck
  767: AuthType LONCAPA
  768: Require valid-user
  769: PerlAuthzHandler       Apache::lonacc
  770: SetHandler perl-script
  771: PerlHandler Apache::blockedaccess
  772: ErrorDocument     500 /adm/errorhandler
  773: </Location>
  774: 
  775: <Location /adm/logout>
  776: AuthType LONCAPA
  777: Require valid-user
  778: PerlAuthzHandler       Apache::lonacc
  779: SetHandler perl-script
  780: PerlHandler Apache::lonlogout
  781: ErrorDocument     403 /adm/login
  782: ErrorDocument     409 /adm/preferences?action=lockwarning
  783: ErrorDocument	  500 /adm/errorhandler
  784: </Location>
  785: 
  786: <Location /adm/switchserver>
  787: AuthType LONCAPA
  788: Require valid-user
  789: PerlAuthzHandler       Apache::lonacc
  790: SetHandler perl-script
  791: PerlHandler Apache::switchserver
  792: ErrorDocument     403 /adm/login
  793: ErrorDocument	  500 /adm/errorhandler
  794: </Location>
  795: 
  796: <Location /adm/authenticate>
  797: SetHandler perl-script
  798: PerlHandler Apache::lonauth
  799: </Location>
  800: 
  801: <Location /adm/migrateuser>
  802: SetHandler perl-script
  803: PerlHandler Apache::migrateuser
  804: </Location>
  805: 
  806: <Location /adm/sso>
  807:   <IfModule mod_shib>
  808:     AuthType shibboleth
  809:     ShibUseEnvironment On
  810:     ShibRequestSetting requireSession 1
  811:     ShibRequestSetting redirectToSSL 443
  812:     require valid-user
  813:     PerlAuthzHandler       Apache::lonshibacc
  814:     PerlAuthzHandler       Apache::lonacc
  815:   </IfModule>
  816:   <IfModule !mod_shib>
  817:     PerlTypeHandler        Apache::lonnoshib
  818:   </IfModule>
  819: </Location>
  820: 
  821: <Location /adm/annotations>
  822: AuthType LONCAPA
  823: Require valid-user
  824: PerlAuthzHandler       Apache::lonacc
  825: SetHandler perl-script
  826: PerlHandler Apache::admannotations
  827: ErrorDocument     403 /adm/login
  828: ErrorDocument	  500 /adm/errorhandler
  829: </Location>
  830: 
  831: <Location /adm/spellcheck>
  832: AuthType LONCAPA
  833: Require valid-user
  834: PerlAuthzHandler       Apache::lonacc
  835: SetHandler perl-script
  836: PerlHandler Apache::lonspeller
  837: ErrorDocument     403 /adm/login
  838: ErrorDocument	  500 /adm/errorhandler
  839: </Location>
  840: 
  841: <Location /adm/flip>
  842: AuthType LONCAPA
  843: Require valid-user
  844: PerlAuthzHandler       Apache::lonacc
  845: SetHandler perl-script
  846: PerlHandler Apache::lonpageflip
  847: PerlCleanupHandler Apache::lonpageflip::cleanup
  848: PerlCleanupHandler	Apache::lonacc::cleanup
  849: ErrorDocument     406 /adm/roles
  850: ErrorDocument     403 /adm/login
  851: ErrorDocument	  500 /adm/errorhandler
  852: </Location>
  853: 
  854: <Location /adm/ambiguous>
  855: AuthType LONCAPA
  856: Require valid-user
  857: PerlAuthzHandler       Apache::lonacc
  858: SetHandler perl-script
  859: PerlHandler Apache::lonambiguous
  860: PerlCleanupHandler Apache::lonambiguous::cleanup
  861: PerlCleanupHandler	Apache::lonacc::cleanup
  862: ErrorDocument     403 /adm/login
  863: ErrorDocument	  500 /adm/errorhandler
  864: </Location>
  865: 
  866: <Location /adm/email>
  867: AuthType LONCAPA
  868: Require valid-user
  869: PerlAuthzHandler       Apache::lonacc
  870: SetHandler perl-script
  871: PerlHandler Apache::lonmsgdisplay
  872: ErrorDocument     403 /adm/login
  873: ErrorDocument	  500 /adm/errorhandler
  874: </Location>
  875: 
  876: <Location /adm/notify>
  877: AuthType LONCAPA
  878: Require valid-user
  879: PerlAuthzHandler       Apache::lonacc
  880: SetHandler perl-script
  881: PerlHandler Apache::lonnotify
  882: ErrorDocument     403 /adm/login
  883: ErrorDocument     500 /adm/errorhandler
  884: </Location>
  885: 
  886: <Location /adm/parmset>
  887: AuthType LONCAPA
  888: Require valid-user
  889: PerlAuthzHandler       Apache::lonacc
  890: SetHandler perl-script
  891: PerlHandler Apache::lonparmset
  892: ErrorDocument     403 /adm/login
  893: ErrorDocument     406 /adm/roles
  894: ErrorDocument	  500 /adm/errorhandler
  895: </Location>
  896: 
  897: <Location /adm/courseprefs>
  898: AuthType LONCAPA
  899: Require valid-user
  900: PerlAuthzHandler       Apache::lonacc
  901: SetHandler perl-script
  902: PerlHandler Apache::courseprefs
  903: ErrorDocument     403 /adm/login
  904: ErrorDocument     406 /adm/roles
  905: ErrorDocument     500 /adm/errorhandler
  906: </Location>
  907: 
  908: <Location /adm/slotrequest>
  909: AuthType LONCAPA
  910: Require valid-user
  911: PerlAuthzHandler       Apache::lonacc
  912: SetHandler perl-script
  913: PerlHandler Apache::slotrequest
  914: ErrorDocument     403 /adm/login
  915: ErrorDocument     406 /adm/roles
  916: ErrorDocument	  500 /adm/errorhandler
  917: </Location>
  918: 
  919: <Location /adm/wizard>
  920: AuthType LONCAPA
  921: Require valid-user
  922: PerlAuthzHandler       Apache::lonacc
  923: SetHandler perl-script
  924: PerlHandler Apache::lonwizard
  925: ErrorDocument     403 /adm/login
  926: ErrorDocument     406 /adm/roles
  927: ErrorDocument	  500 /adm/errorhandler
  928: </Location>
  929: 
  930: <Location /adm/grades>
  931: AuthType LONCAPA
  932: Require valid-user
  933: PerlAuthzHandler       Apache::lonacc
  934: SetHandler perl-script
  935: PerlHandler Apache::grades
  936: ErrorDocument     403 /adm/login
  937: ErrorDocument     406 /adm/roles
  938: ErrorDocument	  500 /adm/errorhandler
  939: </Location>
  940: 
  941: <Location /adm/requestcourse>
  942: AuthType LONCAPA
  943: Require valid-user
  944: PerlAuthzHandler       Apache::lonacc
  945: SetHandler perl-script
  946: PerlHandler Apache::lonrequestcourse
  947: ErrorDocument     403 /adm/login
  948: ErrorDocument     406 /adm/roles
  949: ErrorDocument     500 /adm/errorhandler
  950: </Location>
  951: 
  952: <Location /adm/createcourse>
  953: AuthType LONCAPA
  954: Require valid-user
  955: PerlAuthzHandler       Apache::lonacc
  956: SetHandler perl-script
  957: PerlHandler Apache::loncreatecourse
  958: ErrorDocument     403 /adm/login
  959: ErrorDocument     406 /adm/roles
  960: ErrorDocument	  500 /adm/errorhandler
  961: </Location>
  962: 
  963: <Location /adm/modifycourse>
  964: AuthType LONCAPA
  965: Require valid-user
  966: PerlAuthzHandler       Apache::lonacc
  967: SetHandler perl-script
  968: PerlHandler Apache::lonmodifycourse
  969: ErrorDocument     403 /adm/login
  970: ErrorDocument     406 /adm/roles
  971: ErrorDocument     500 /adm/errorhandler
  972: </Location>
  973: 
  974: <Location /adm/domainprefs>
  975: AuthType LONCAPA
  976: Require valid-user
  977: PerlAuthzHandler       Apache::lonacc
  978: SetHandler perl-script
  979: PerlHandler Apache::domainprefs
  980: ErrorDocument     403 /adm/login
  981: ErrorDocument     406 /adm/roles
  982: ErrorDocument     500 /adm/errorhandler
  983: </Location>
  984: 
  985: <Location /adm/domainstatus>
  986: PerlAccessHandler       Apache::lonstatusacc
  987: SetHandler perl-script
  988: PerlHandler Apache::domainstatus
  989: ErrorDocument     403 /adm/login
  990: ErrorDocument     406 /adm/roles
  991: ErrorDocument     500 /adm/errorhandler
  992: </Location>
  993: 
  994: <Location /adm/createuser>
  995: AuthType LONCAPA
  996: Require valid-user
  997: PerlAuthzHandler       Apache::lonacc
  998: SetHandler perl-script
  999: PerlHandler Apache::loncreateuser
 1000: ErrorDocument     403 /adm/login
 1001: ErrorDocument     406 /adm/roles
 1002: ErrorDocument	  500 /adm/errorhandler
 1003: </Location>
 1004: 
 1005: <Location /adm/publish>
 1006: AuthType LONCAPA
 1007: Require valid-user
 1008: PerlAuthzHandler       Apache::lonacc
 1009: SetHandler perl-script
 1010: PerlHandler Apache::lonpublisher
 1011: ErrorDocument     403 /adm/login
 1012: ErrorDocument     404 /adm/notfound.html
 1013: ErrorDocument     406 /adm/unauthorized
 1014: ErrorDocument	  500 /adm/errorhandler
 1015: </Location>
 1016: 
 1017: <LocationMatch "^/+priv/.*/$">
 1018: AuthType LONCAPA
 1019: Require valid-user
 1020: PerlAuthzHandler       Apache::loncacc
 1021: SetHandler perl-script
 1022: PerlHandler Apache::lonpubdir
 1023: ErrorDocument     403 /adm/login
 1024: ErrorDocument     404 /adm/notfound.html
 1025: ErrorDocument     406 /adm/unauthorized
 1026: ErrorDocument	  500 /adm/errorhandler
 1027: </LocationMatch>
 1028: 
 1029: <Location /adm/unauthorized>
 1030: AuthType LONCAPA
 1031: Require valid-user
 1032: PerlAuthzHandler       Apache::lonacc
 1033: SetHandler perl-script
 1034: PerlHandler Apache::lonunauthorized
 1035: ErrorDocument     403 /adm/login
 1036: ErrorDocument     404 /adm/notfound.html
 1037: ErrorDocument	  500 /adm/errorhandler
 1038: </Location>
 1039: 
 1040: <Location /adm/retrieve>
 1041: AuthType LONCAPA
 1042: Require valid-user
 1043: PerlAuthzHandler       Apache::lonacc
 1044: SetHandler perl-script
 1045: PerlHandler Apache::lonretrieve
 1046: ErrorDocument     403 /adm/login
 1047: ErrorDocument     404 /adm/notfound.html
 1048: ErrorDocument     406 /adm/unauthorized
 1049: ErrorDocument	  500 /adm/errorhandler
 1050: </Location>
 1051: 
 1052: <Location /adm/cleanup>
 1053: AuthType LONCAPA
 1054: Require valid-user
 1055: PerlAuthzHandler       Apache::lonacc
 1056: SetHandler perl-script
 1057: PerlHandler Apache::loncleanup
 1058: ErrorDocument     403 /adm/login
 1059: ErrorDocument     404 /adm/notfound.html
 1060: ErrorDocument     406 /adm/unauthorized
 1061: ErrorDocument	  500 /adm/errorhandler
 1062: </Location>
 1063: 
 1064: <Location /adm/cfile>
 1065: AuthType LONCAPA
 1066: Require valid-user
 1067: PerlAuthzHandler       Apache::lonacc
 1068: SetHandler perl-script
 1069: PerlHandler Apache::loncfile
 1070: ErrorDocument     403 /adm/login
 1071: ErrorDocument     404 /adm/notfound.html
 1072: ErrorDocument     406 /adm/unauthorized
 1073: ErrorDocument	  500 /adm/errorhandler
 1074: </Location>
 1075: 
 1076: <Location /adm/diff>
 1077: AuthType LONCAPA
 1078: Require valid-user
 1079: PerlAuthzHandler       Apache::lonacc
 1080: SetHandler perl-script
 1081: PerlHandler Apache::londiff
 1082: ErrorDocument     403 /adm/login
 1083: ErrorDocument     404 /adm/notfound.html
 1084: ErrorDocument     406 /adm/unauthorized
 1085: ErrorDocument	  500 /adm/errorhandler
 1086: </Location>
 1087: 
 1088: <Location /adm/upload>
 1089: AuthType LONCAPA
 1090: Require valid-user
 1091: PerlAuthzHandler       Apache::lonacc
 1092: SetHandler perl-script
 1093: PerlHandler Apache::lonupload
 1094: ErrorDocument     403 /adm/login
 1095: ErrorDocument     404 /adm/notfound.html
 1096: ErrorDocument     406 /adm/unauthorized
 1097: ErrorDocument	  500 /adm/errorhandler
 1098: </Location>
 1099: 
 1100: <Location /adm/imsimport>
 1101: AuthType LONCAPA
 1102: Require valid-user
 1103: PerlAuthzHandler       Apache::lonacc
 1104: SetHandler perl-script
 1105: PerlHandler Apache::imsimport
 1106: ErrorDocument     403 /adm/login
 1107: ErrorDocument     404 /adm/notfound.html
 1108: ErrorDocument     406 /adm/unauthorized
 1109: ErrorDocument     500 /adm/errorhandler
 1110: </Location>
 1111: 
 1112: <Location /adm/testbank>
 1113: AuthType LONCAPA
 1114: Require valid-user
 1115: PerlAuthzHandler       Apache::lonacc
 1116: SetHandler perl-script
 1117: PerlHandler Apache::testbankimport
 1118: ErrorDocument     403 /adm/login
 1119: ErrorDocument     404 /adm/notfound.html
 1120: ErrorDocument     406 /adm/unauthorized
 1121: ErrorDocument     500 /adm/errorhandler
 1122: </Location>
 1123: 
 1124: <Location /adm/assesscalc>
 1125: AuthType LONCAPA
 1126: Require valid-user
 1127: PerlAuthzHandler       Apache::lonacc
 1128: SetHandler perl-script
 1129: PerlHandler Apache::lonspreadsheet
 1130: ErrorDocument     403 /adm/login
 1131: ErrorDocument     406 /adm/roles
 1132: ErrorDocument     413 /adm/overloaded.txt
 1133: ErrorDocument	  500 /adm/errorhandler
 1134: </Location>
 1135: 
 1136: <Location /adm/studentcalc>
 1137: AuthType LONCAPA
 1138: Require valid-user
 1139: PerlAuthzHandler       Apache::lonacc
 1140: SetHandler perl-script
 1141: PerlHandler Apache::lonspreadsheet
 1142: ErrorDocument     403 /adm/login
 1143: ErrorDocument     406 /adm/roles
 1144: ErrorDocument     413 /adm/overloaded.txt
 1145: ErrorDocument	  500 /adm/errorhandler
 1146: </Location>
 1147: 
 1148: <Location /adm/classcalc>
 1149: AuthType LONCAPA
 1150: Require valid-user
 1151: PerlAuthzHandler       Apache::lonacc
 1152: SetHandler perl-script
 1153: PerlHandler Apache::lonspreadsheet
 1154: ErrorDocument     403 /adm/login
 1155: ErrorDocument     406 /adm/roles
 1156: ErrorDocument     413 /adm/overloaded.txt
 1157: ErrorDocument	  500 /adm/errorhandler
 1158: </Location>
 1159: 
 1160: <Location /adm/dropadd>
 1161: AuthType LONCAPA
 1162: Require valid-user
 1163: PerlAuthzHandler       Apache::lonacc
 1164: SetHandler perl-script
 1165: PerlHandler Apache::londropadd
 1166: ErrorDocument     403 /adm/login
 1167: ErrorDocument     406 /adm/roles
 1168: ErrorDocument	  500 /adm/errorhandler
 1169: </Location>
 1170: 
 1171: <Location /adm/viewclasslist>
 1172: AuthType LONCAPA
 1173: Require valid-user
 1174: PerlAuthzHandler       Apache::lonacc
 1175: SetHandler perl-script
 1176: PerlHandler Apache::lonviewclasslist
 1177: ErrorDocument     403 /adm/login
 1178: ErrorDocument     406 /adm/roles
 1179: ErrorDocument	  500 /adm/errorhandler
 1180: </Location>
 1181: 
 1182: <Location /adm/coursegroups>
 1183: AuthType LONCAPA
 1184: Require valid-user
 1185: PerlAuthzHandler       Apache::lonacc
 1186: SetHandler perl-script
 1187: PerlHandler Apache::loncoursegroups
 1188: ErrorDocument     403 /adm/login
 1189: ErrorDocument     406 /adm/roles
 1190: ErrorDocument     500 /adm/errorhandler
 1191: </Location>
 1192: 
 1193: <Location /adm/groupboards>
 1194: AuthType LONCAPA
 1195: Require valid-user
 1196: PerlAuthzHandler       Apache::lonacc
 1197: SetHandler perl-script
 1198: PerlHandler Apache::groupboards
 1199: ErrorDocument     403 /adm/login
 1200: ErrorDocument     406 /adm/roles
 1201: ErrorDocument     500 /adm/errorhandler
 1202: </Location>
 1203: 
 1204: <Location /adm/grouproster>
 1205: AuthType LONCAPA
 1206: Require valid-user
 1207: PerlAuthzHandler       Apache::lonacc
 1208: SetHandler perl-script
 1209: PerlHandler Apache::grouproster
 1210: ErrorDocument     403 /adm/login
 1211: ErrorDocument     406 /adm/roles
 1212: ErrorDocument     500 /adm/errorhandler
 1213: </Location>
 1214: 
 1215: <Location /adm/whatsnew>
 1216: AuthType LONCAPA
 1217: Require valid-user
 1218: PerlAuthzHandler       Apache::lonacc
 1219: SetHandler perl-script
 1220: PerlHandler Apache::lonwhatsnew
 1221: ErrorDocument     403 /adm/login
 1222: ErrorDocument     406 /adm/roles
 1223: ErrorDocument     500 /adm/errorhandler
 1224: </Location>
 1225: 
 1226: <Location /adm/populate>
 1227: AuthType LONCAPA
 1228: Require valid-user
 1229: PerlAuthzHandler       Apache::lonacc
 1230: SetHandler perl-script
 1231: PerlHandler Apache::lonpopulate
 1232: ErrorDocument     403 /adm/login
 1233: ErrorDocument     406 /adm/roles
 1234: ErrorDocument     500 /adm/errorhandler
 1235: </Location>
 1236: 
 1237: <Location /adm/managekeys>
 1238: AuthType LONCAPA
 1239: Require valid-user
 1240: PerlAuthzHandler       Apache::lonacc
 1241: SetHandler perl-script
 1242: PerlHandler Apache::lonmanagekeys
 1243: ErrorDocument     403 /adm/login
 1244: ErrorDocument     406 /adm/roles
 1245: ErrorDocument	  500 /adm/errorhandler
 1246: </Location>
 1247: 
 1248: <Location /adm/printout>
 1249: AuthType LONCAPA
 1250: Require valid-user
 1251: PerlAuthzHandler       Apache::lonacc
 1252: SetHandler perl-script
 1253: PerlHandler Apache::lonprintout
 1254: ErrorDocument     403 /adm/login
 1255: ErrorDocument     413 /adm/overloaded.txt
 1256: ErrorDocument	  500 /adm/errorhandler
 1257: </Location>
 1258: 
 1259: <Location /adm/feedback>
 1260: AuthType LONCAPA
 1261: Require valid-user
 1262: PerlAuthzHandler       Apache::lonacc
 1263: SetHandler perl-script
 1264: PerlHandler Apache::lonfeedback
 1265: ErrorDocument     403 /adm/login
 1266: ErrorDocument	  500 /adm/errorhandler
 1267: </Location>
 1268: 
 1269: <Location /adm/coursedocs>
 1270: AuthType LONCAPA
 1271: Require valid-user
 1272: PerlAuthzHandler       Apache::lonacc
 1273: SetHandler perl-script
 1274: PerlHandler Apache::londocs
 1275: PerlCleanupHandler Apache::londocs::untiehash
 1276: PerlCleanupHandler	Apache::lonacc::cleanup
 1277: ErrorDocument     403 /adm/login
 1278: ErrorDocument	  500 /adm/errorhandler
 1279: </Location>
 1280: 
 1281: <Location /adm/supplemental>
 1282: AuthType LONCAPA
 1283: Require valid-user
 1284: PerlAuthzHandler       Apache::lonacc
 1285: SetHandler perl-script
 1286: PerlHandler Apache::londocs
 1287: PerlCleanupHandler Apache::londocs::untiehash
 1288: PerlCleanupHandler      Apache::lonacc::cleanup
 1289: ErrorDocument     403 /adm/login
 1290: ErrorDocument     500 /adm/errorhandler
 1291: </Location>
 1292: 
 1293: <Location /adm/imsimportdocs>
 1294: AuthType LONCAPA
 1295: Require valid-user
 1296: PerlAuthzHandler       Apache::lonacc
 1297: SetHandler perl-script
 1298: PerlHandler Apache::imsimportdocs
 1299: ErrorDocument     403 /adm/login
 1300: ErrorDocument     500 /adm/errorhandler
 1301: </Location>
 1302: 
 1303: <Location /adm/extresedit>
 1304: AuthType LONCAPA
 1305: Require valid-user
 1306: PerlAuthzHandler       Apache::lonacc
 1307: SetHandler perl-script
 1308: PerlHandler Apache::lonextresedit
 1309: ErrorDocument     403 /adm/login
 1310: ErrorDocument     500 /adm/errorhandler
 1311: </Location>
 1312: 
 1313: <LocationMatch "^/adm/announcements">
 1314: AuthType LONCAPA
 1315: Require valid-user
 1316: PerlAuthzHandler       Apache::lonacc
 1317: SetHandler perl-script
 1318: PerlHandler Apache::lonannounce
 1319: ErrorDocument     403 /adm/login
 1320: ErrorDocument	  500 /adm/errorhandler
 1321: </LocationMatch>
 1322: 
 1323: <Location /adm/chat>
 1324: AuthType LONCAPA
 1325: Require valid-user
 1326: PerlAuthzHandler       Apache::lonacc
 1327: SetHandler perl-script
 1328: PerlHandler Apache::lonchat
 1329: ErrorDocument	  500 /adm/errorhandler
 1330: </Location>
 1331: 
 1332: <Location /adm/chatfetch>
 1333: AuthType LONCAPA
 1334: Require valid-user
 1335: PerlAuthzHandler       Apache::lonacc
 1336: SetHandler perl-script
 1337: PerlHandler Apache::lonchatfetch
 1338: ErrorDocument     413 /adm/overloaded.txt
 1339: ErrorDocument	  500 /adm/errorhandler
 1340: </Location>
 1341: 
 1342: <Location /adm/groupchat>
 1343: AuthType LONCAPA
 1344: Require valid-user
 1345: PerlAuthzHandler       Apache::lonacc
 1346: SetHandler perl-script
 1347: PerlHandler Apache::longroupchat
 1348: ErrorDocument     403 /adm/login
 1349: ErrorDocument     500 /adm/errorhandler
 1350: </Location>
 1351: 
 1352: <Location /adm/evaluate>
 1353: AuthType LONCAPA
 1354: Require valid-user
 1355: PerlAuthzHandler       Apache::lonacc
 1356: SetHandler perl-script
 1357: PerlHandler Apache::lonevaluate
 1358: ErrorDocument     403 /adm/login
 1359: ErrorDocument	  500 /adm/errorhandler
 1360: </Location>
 1361: 
 1362: <Location /adm/preferences>
 1363: AuthType LONCAPA
 1364: Require valid-user
 1365: PerlAuthzHandler       Apache::lonacc
 1366: SetHandler perl-script
 1367: PerlHandler Apache::lonpreferences
 1368: ErrorDocument     403 /adm/login
 1369: ErrorDocument	  500 /adm/errorhandler
 1370: </Location>
 1371: 
 1372: <Location /adm/communicate>
 1373: AuthType LONCAPA
 1374: Require valid-user
 1375: PerlAuthzHandler       Apache::lonacc
 1376: SetHandler perl-script
 1377: PerlHandler Apache::loncommunicate
 1378: ErrorDocument     403 /adm/login
 1379: ErrorDocument	  500 /adm/errorhandler
 1380: </Location>
 1381: 
 1382: <Location /adm/searchcat>
 1383: AuthType LONCAPA
 1384: Require valid-user
 1385: PerlAuthzHandler       Apache::lonacc
 1386: SetHandler perl-script
 1387: PerlHandler Apache::lonsearchcat
 1388: PerlCleanupHandler Apache::lonsearchcat::cleanup
 1389: PerlCleanupHandler	Apache::lonacc::cleanup
 1390: ErrorDocument     403 /adm/login
 1391: ErrorDocument     413 /adm/overloaded.txt
 1392: ErrorDocument	  500 /adm/errorhandler
 1393: </Location>
 1394: 
 1395: <Location /adm/navmaps>
 1396: AuthType LONCAPA
 1397: Require valid-user
 1398: PerlAuthzHandler       Apache::lonacc
 1399: SetHandler perl-script
 1400: PerlHandler Apache::lonnavdisplay
 1401: ErrorDocument     403 /adm/login
 1402: ErrorDocument     406 /adm/roles
 1403: ErrorDocument	  500 /adm/errorhandler
 1404: </Location>
 1405: 
 1406: <Location /adm/quickgrades>
 1407: AuthType LONCAPA
 1408: Require valid-user
 1409: PerlAuthzHandler       Apache::lonacc
 1410: SetHandler perl-script
 1411: PerlHandler Apache::lonquickgrades
 1412: ErrorDocument     403 /adm/login
 1413: ErrorDocument     406 /adm/roles
 1414: ErrorDocument     500 /adm/errorhandler
 1415: </Location>
 1416: 
 1417: <Location /adm/groupsort>
 1418: AuthType LONCAPA
 1419: Require valid-user
 1420: PerlAuthzHandler	Apache::lonacc
 1421: SetHandler perl-script
 1422: PerlHandler Apache::groupsort
 1423: PerlCleanupHandler Apache::groupsort::cleanup
 1424: PerlCleanupHandler	Apache::lonacc::cleanup
 1425: ErrorDocument     403 /adm/login
 1426: ErrorDocument     406 /adm/roles
 1427: ErrorDocument	  500 /adm/errorhandler
 1428: </Location>
 1429: 
 1430: <Location /adm/wishlist>
 1431: AuthType LONCAPA
 1432: Require valid-user
 1433: PerlAuthzHandler       Apache::lonacc
 1434: SetHandler perl-script
 1435: PerlHandler Apache::lonwishlistdisplay
 1436: ErrorDocument     403 /adm/login
 1437: ErrorDocument     406 /adm/roles
 1438: ErrorDocument	  500 /adm/errorhandler
 1439: </Location>
 1440: 
 1441: <Location /adm/setblock>
 1442: AuthType LONCAPA
 1443: Require valid-user
 1444: PerlAuthzHandler       Apache::lonacc
 1445: SetHandler             perl-script
 1446: PerlHandler            Apache::lonblockingmenu
 1447: ErrorDocument     403 /adm/login
 1448: ErrorDocument     406 /adm/roles
 1449: ErrorDocument     500 /adm/errorhandler
 1450: </Location>
 1451: 
 1452: <Location /adm/blockingstatus>
 1453: PerlAccessHandler      Apache::publiccheck
 1454: AuthType LONCAPA
 1455: Require valid-user
 1456: PerlAuthzHandler       Apache::lonacc
 1457: SetHandler             perl-script
 1458: PerlHandler            Apache::lonblockingstatus
 1459: </Location>
 1460: 
 1461: <Location /adm/accesstimes>
 1462: AuthType LONCAPA
 1463: Require valid-user
 1464: PerlAuthzHandler       Apache::lonacc
 1465: SetHandler             perl-script
 1466: PerlHandler            Apache::lonaccesstimes
 1467: ErrorDocument     403 /adm/login
 1468: ErrorDocument     406 /adm/roles
 1469: ErrorDocument     500 /adm/errorhandler
 1470: </Location>
 1471: 
 1472: <Location /adm/errorhandler>
 1473: SetHandler perl-script
 1474: PerlHandler Apache::lonerrorhandler
 1475: </Location>
 1476: 
 1477: <LocationMatch "^/adm/help/.*\.hlp$">
 1478: AuthType LONCAPA
 1479: Require valid-user
 1480: PerlAccessHandler      Apache::publiccheck
 1481: PerlAuthzHandler	Apache::lonacc
 1482: SetHandler perl-script
 1483: PerlHandler Apache::lonhelp
 1484: ErrorDocument	  500 /adm/errorhandler
 1485: </LocationMatch>
 1486: 
 1487: <LocationMatch "^/adm/helpmenu">
 1488: AuthType LONCAPA
 1489: Require valid-user
 1490: PerlAuthzHandler       Apache::lonacc
 1491: SetHandler perl-script
 1492: PerlHandler Apache::lonhelpmenu
 1493: ErrorDocument	  500 /adm/errorhandler
 1494: </LocationMatch>
 1495: 
 1496: <LocationMatch "^/adm/support">
 1497: AuthType LONCAPA
 1498: Require valid-user
 1499: PerlAuthzHandler       Apache::lonacc
 1500: SetHandler perl-script
 1501: PerlHandler Apache::lonsupportreq
 1502: ErrorDocument	  500 /adm/errorhandler
 1503: </LocationMatch>
 1504: 
 1505: <LocationMatch "^/adm/helpdesk">
 1506: SetHandler perl-script
 1507: PerlHandler Apache::lonsupportreq
 1508: ErrorDocument	  500 /adm/errorhandler
 1509: </LocationMatch>
 1510: 
 1511: <LocationMatch "^/adm/css/.*\.css$">
 1512: SetHandler perl-script
 1513: PerlHandler Apache::loncss
 1514: ErrorDocument	  500 /adm/errorhandler
 1515: </LocationMatch>
 1516: 
 1517: <LocationMatch "^/adm/coursecatalog">
 1518: SetHandler perl-script
 1519: PerlHandler Apache::coursecatalog
 1520: ErrorDocument	  500 /adm/errorhandler
 1521: </LocationMatch>
 1522: 
 1523: <LocationMatch "^/adm/resetpw">
 1524: SetHandler perl-script
 1525: PerlHandler Apache::resetpw
 1526: ErrorDocument     500 /adm/errorhandler
 1527: </LocationMatch>
 1528: 
 1529: <LocationMatch "^/adm/selfenroll">
 1530: SetHandler perl-script
 1531: PerlHandler Apache::selfenroll
 1532: ErrorDocument     500 /adm/errorhandler
 1533: </LocationMatch>
 1534: 
 1535: <LocationMatch "^/adm/createaccount">
 1536: SetHandler perl-script
 1537: PerlHandler Apache::createaccount
 1538: ErrorDocument     500 /adm/errorhandler
 1539: </LocationMatch>
 1540: 
 1541: <LocationMatch "^/adm/dns">
 1542: SetHandler perl-script
 1543: PerlHandler Apache::londns
 1544: ErrorDocument     500 /adm/errorhandler
 1545: </LocationMatch>
 1546: 
 1547: <LocationMatch "^/ajax/spellcheck">
 1548: SetHandler perl-script
 1549: PerlHandler Apache::spellcheck
 1550: </LocationMatch>
 1551: 
 1552: 
 1553: 
 1554: # ------------------------------------------------- Backdoor Adm Tests/Programs
 1555: 
 1556: <Location /adm/test>
 1557: PerlAccessHandler Apache::lonstatusacc
 1558: SetHandler perl-script
 1559: PerlHandler Apache::lontest
 1560: </Location>
 1561: 
 1562: # ------------------------------------------------------- Shutting down a child
 1563: 
 1564: PerlChildExitHandler Apache::lonacc::goodbye
 1565: 
 1566: #
 1567: # LON-CAPA Section (extensions to access.conf permission configuration)
 1568: #
 1569: # =========================================================== Directory Options
 1570: 
 1571: # Start out with "no"
 1572: 
 1573: <Directory />
 1574: Options None
 1575: AllowOverride None
 1576: <IfModule mod_authz_core.c>
 1577:   Require all denied
 1578: </IfModule>
 1579: <IfModule !mod_authz_core.c>
 1580:   order deny,allow
 1581:   deny from all
 1582: </IfModule>
 1583: </Directory>
 1584: 
 1585: # Allow uploaded files to be served
 1586: 
 1587: <Directory "/home/httpd/lonUsers">
 1588: Options Includes FollowSymLinks
 1589: AllowOverride None
 1590: <IfModule mod_authz_core.c>
 1591:   Require all granted
 1592: </IfModule>
 1593: <IfModule !mod_authz_core.c>
 1594:   order allow,deny
 1595:   allow from all
 1596: </IfModule>
 1597: </Directory>
 1598:  
 1599: # Allow construction space files to be served
 1600: 
 1601: <Directory "/home/*/public_html/" >
 1602: Options Includes FollowSymLinks
 1603: AllowOverride
 1604: <IfModule mod_authz_core.c>
 1605:   Require all granted
 1606: </IfModule>
 1607: <IfModule !mod_authz_core.c>
 1608:   order allow,deny
 1609:   allow from all
 1610: </IfModule>
 1611: </Directory>
 1612: 
 1613: # Yes to symbolic links and server-side includes
 1614: 
 1615: <Directory /home/httpd/html>
 1616: Options Includes FollowSymLinks
 1617: AllowOverride None
 1618: <IfModule mod_authz_core.c>
 1619:   Require all granted
 1620: </IfModule>
 1621: <IfModule !mod_authz_core.c>
 1622:   order allow,deny
 1623:   allow from all
 1624: </IfModule>
 1625: </Directory>
 1626: 
 1627: # If it is in cgi-bin, then it can be executed as a CGI script.
 1628: 
 1629: <Directory /home/httpd/cgi-bin>
 1630: AllowOverride None
 1631: Options ExecCGI FollowSymLinks
 1632: <IfModule mod_authz_core.c>
 1633:   Require all granted
 1634: </IfModule>
 1635: <IfModule !mod_authz_core.c>
 1636:   order allow,deny
 1637:   allow from all
 1638: </IfModule>
 1639: </Directory>
 1640: 
 1641: # Allow serving of files in prtspool
 1642: 
 1643: <Directory "/home/httpd/prtspool/">
 1644: Options Includes FollowSymLinks
 1645: AllowOverride None
 1646: <IfModule mod_authz_core.c>
 1647:   Require all granted
 1648: </IfModule>
 1649: <IfModule !mod_authz_core.c>
 1650:   order allow,deny
 1651:   allow from all
 1652: </IfModule>
 1653: </Directory>
 1654: 
 1655: # Allow serving of files in zipspool
 1656: 
 1657: <Directory "/home/httpd/zipspool/">
 1658: Options Includes FollowSymLinks
 1659: AllowOverride None
 1660: <IfModule mod_authz_core.c>
 1661:   Require all granted
 1662: </IfModule>
 1663: <IfModule !mod_authz_core.c>
 1664:   order allow,deny
 1665:   allow from all
 1666: </IfModule>
 1667: </Directory>
 1668: 
 1669: # Allow serving of files in captchaspool
 1670: 
 1671: <Directory "/home/httpd/captchaspool/">
 1672: Options Includes FollowSymLinks
 1673: AllowOverride None
 1674: <IfModule mod_authz_core.c>
 1675:   Require all granted
 1676: </IfModule>
 1677: <IfModule !mod_authz_core.c>
 1678:   order allow,deny
 1679:   allow from all
 1680: </IfModule>
 1681: </Directory>
 1682: 
 1683: <DirectoryMatch "^/home/httpd/html/priv/.+/">
 1684:    DirectoryIndex disabled
 1685: </DirectoryMatch>
 1686: 
 1687: <DirectoryMatch "^/home/httpd/html/res/.+/">
 1688:    DirectoryIndex disabled
 1689: </DirectoryMatch>
 1690: 
 1691: # ============================================================= Access Handlers
 1692: 
 1693: # ------------------------------------------------- Allow server-status reports
 1694: <Location /server-status>
 1695: PerlAccessHandler Apache::lonstatusacc
 1696: SetHandler server-status
 1697: </Location>
 1698: 
 1699: # ------------------------ Allow LON-CAPA "low-level" connection status reports
 1700: <LocationMatch "^/+lon-status/.*">
 1701: PerlAccessHandler Apache::lonstatusacc
 1702: ErrorDocument     406 /adm/roles
 1703: ErrorDocument     500 /adm/errorhandler
 1704: </LocationMatch>
 1705: 
 1706: # ------------------- Allow access to local system documentation from localhost
 1707: Alias /doc /usr/doc
 1708: <Directory /usr/doc>
 1709: Options Indexes FollowSymLinks
 1710: <IfModule mod_authz_host.c>
 1711:   Require local
 1712: </IfModule>
 1713: <IfModule !mod_authz_host.c>
 1714:   order deny,allow
 1715:   deny from all
 1716:   allow from localhost
 1717: </IfModule>
 1718: </Directory>
 1719: 
 1720: # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
 1721: # ====================================== Internal Settings / Perl Configuration
 1722: 
 1723: PerlSetVar	 lonVersion  '<!-- VERSION -->'
 1724: PerlSetVar       lonIDsDir    /home/httpd/lonIDs
 1725: PerlSetVar       lonDAVsessDir /home/httpd/webdav/sessionIDs
 1726: PerlSetVar       lonTabDir    /home/httpd/lonTabs
 1727: PerlSetVar       lonUsersDir  /home/httpd/lonUsers
 1728: PerlSetVar       lonIconsURL  /adm/lonIcons
 1729: PerlSetVar       londPort     5663
 1730: PerlSetVar       lonSysEMail  techsupport@loncapa.org
 1731: PerlSetVar       lonDaemons   /home/httpd/perl
 1732: PerlSetVar       lonLib       /home/httpd/lib
 1733: PerlSetVar       lonSockDir   /home/httpd/sockets
 1734: PerlSetVar       lonSockCreate   /home/httpd/sockets/common
 1735: PerlSetVar       lonDocRoot   /home/httpd/html
 1736: PerlSetVar       lonPrtDir    /home/httpd/prtspool
 1737: PerlSetVar       lonIncludes  /home/httpd/html/res/adm/includes
 1738: PerlSetVar       lonZipDir    /home/httpd/zipspool
 1739: PerlSetVar       lonCaptchaDir     /home/httpd/captchaspool
 1740: PerlSetVar       lonCaptchaDb     /home/httpd/captchadb 
 1741: PerlSetVar       lonFontsDir     /home/httpd/html/adm/fonts
 1742: # & separated list of % separated fields in order of
 1743: # - internal name to call it, 
 1744: # - regexp that it should match (done case-insensitively)
 1745: # - regexp that is should not match (done case-insensitively)
 1746: # - regexp that will pull out the version number into $1
 1747: # - a number that describes the minimum version that has mathml support
 1748: # - a number that describes the minimum number version that has unicode support
 1749: 
 1750: PerlSetVar       lonBrowsDet  explorer%msie%netscape%msie\s(\d+\.\d+)\;%9999%5&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&chrome%chrome%chromeframe%\s+chrome\/(\d+\.\d+)%9999%1&explorer%\s+rv\:\d+\.\d+%firefox%\s+rv\:(\d+\.\d+)%9999%5&opera%\sOPR\/\d+\.\d+%shouldnotmatch%\sOPR\/(\d+\.\d+)%9999%6&opera%^Opera\/9.80\s.+Version\/\d+\.\d+$%shouldnotmatch%Version\/(\d+\.\d+)$%9999%6&opera%^Opera\/\d+\.\d+\s%Version\/\d+\.\d+$%^Opera\/(\d+\.\d+)\s%9999%6
 1751: 
 1752: PerlSetVar       lonTextBrowsers windows\s+ce:lynx
 1753: PerlSetVar       lonScansDir  /home/httpd/scantron
 1754: PerlSetVar       lonScriptTimeout 10
 1755: PerlSetVar	 BugzillaHost	http://bugs.lon-capa.org/
 1756: PerlSetVar	 FAQHost	http://help.lon-capa.org/
 1757: # -----------------------------------------------------------------------------
 1758: # NOTE: lonSqlAccess key is the password for the MySQL user
 1759: # www@localhost.  This value must always be "localhostkey".
 1760: # The only security risk occurs when somebody logs in as 'www' on your system
 1761: # (in which case you have much bigger problems than whether or not they
 1762: # can access the non-authoritative loncapa database on your machine).
 1763: 
 1764: PerlSetVar       lonSqlAccess   localhostkey
 1765: 
 1766: #----------------------------------------------------------------------------
 1767: #
 1768: #   Parameters used by secure lond/lonc
 1769: 
 1770: #
 1771: #   Secure lond/lonc require ssl certificate and private
 1772: #   key files to function correctly.  The certificate
 1773: #   files need not be terribly secure, but the private key files
 1774: #   should be set up so that only www (the lonc/lond effective user)
 1775: #   can read them.
 1776: # 
 1777: #   The definition below is the full path to the directory that
 1778: #   contains the certificate and key files:
 1779: 
 1780: PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
 1781: 
 1782: #
 1783: #  Secure lond/lonc require two certificates and a private host key.
 1784: #  The certificates required are that of the lonCAPA certificate authority
 1785: #  and the certificate that authority issued to this host.
 1786: #  lonnetCertificateAuthority is the name of the file that contains the
 1787: #                            lonCAPA certificate authority's certificate.
 1788: #  lonnetCertificate is the name of the file that contains the certificate
 1789: #                    issued to the host by the certificate authority.
 1790: #  Both of these variables are names of files assumed to be in 
 1791: #  lonCertificateDirectory:
 1792: 
 1793: PerlSetVar lonnetCertificateAuthority loncapaCA.pem
 1794: PerlSetVar lonnetCertificate          lonhostcert.pem
 1795: PerlSetVar lonnetHostnameCertificate  lonhostnamecert.pem
 1796: 
 1797: #
 1798: #  To generate the request for a certificate, and to negotiate the
 1799: #  initial ssl connection, the host requires a private key.  This key
 1800: #  is created at lonCAPA install time.  Did we mention above that it
 1801: #  should be set so that only www can read it?  The variale below
 1802: #  is the name of the file relative to lonnetCertificateDirectory
 1803: #  that has the host's private key.  Did we remember to tell you to
 1804: #  keep the permissions on that file set to rw-------  (0600)?
 1805: #  
 1806: 
 1807: PerlSetVar lonnetPrivateKey         lonKey.pem
 1808: 
 1809: # Did we mention that the file described above must have
 1810: # permissions really locked down so that it can't be stolen?
 1811: 
 1812: #-------------------------------------------------------------------------
 1813: 
 1814: #   Parameters that define where all the ssl stuff is that's needed
 1815: #   to generate certificate requests and, on a system that's a CA
 1816: #   the certificate authority.
 1817: #    
 1818: #    SSLProgram    -> Path to the openssl command
 1819: #    SSLDirectory  -> Directory containing ssl configuration files etc.
 1820: #    SSLCAConfig   -> Name of the SSL config file for the certificate 
 1821: #                     Authority.
 1822: #    SSLCAFile     -> Full path to the Certificate authority file 
 1823: #                    (on the cert manager system).
 1824: #    SSLEmail      -> E-mail address of loncapa certificate manager.
 1825: #    The following are good for the loncapa redhat installs and
 1826: #    the loncapa certificate authority system:
 1827: #
 1828: PerlSetVar SSLProgram	/usr/bin/openssl
 1829: PerlSetVar SSLDirectory /usr/share/ssl
 1830: PerlSetVar SSLCAConfig  loncapaca
 1831: PerlSetVar SSLCAFile    /usr/share/ssl/loncapaca/cacert.pem
 1832: PerlSetVar SSLEmail     certificate@lon-capa.org
 1833: 
 1834: #-------------------------------------------------------------------------
 1835: 
 1836: 
 1837: # ====================================== Include support for SSL rewrites
 1838: 
 1839: Include conf/loncapa_rewrite.conf
 1840: 
 1841: 
 1842: # ====================================== Include machine-specific configuration
 1843: 
 1844: Include conf/loncapa.conf
 1845: 
 1846: # ================================================= Include local configuration
 1847: 
 1848: Include conf/loncapa_apache_local*.conf
 1849: 
 1850: # ================================================== Initiate mod_perl starting
 1851: 
 1852: PerlRequire      conf/startup.pl
 1853: <IfDefine !MODPERL2>
 1854: PerlFreshRestart On
 1855: </IfDefine>

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