version 1.215.2.30.2.1, 2021/12/30 06:50:12
|
version 1.227, 2013/12/07 22:13:27
|
Line 30 PerlSetVar MODPERL2 1
|
Line 30 PerlSetVar MODPERL2 1
|
</IfDefine> |
</IfDefine> |
# =============================================================== Miscellaneous |
# =============================================================== Miscellaneous |
|
|
ServerAdmin consortium@loncapa.org |
ServerAdmin korte@lite.msu.edu |
ExtendedStatus On |
ExtendedStatus On |
# |
# |
# LON-CAPA Section (extensions to srm.conf name space servicing) |
# LON-CAPA Section (extensions to srm.conf name space servicing) |
Line 64 PerlSetVar lonOtherAuthen no
|
Line 64 PerlSetVar lonOtherAuthen no
|
|
|
#PerlWarn On |
#PerlWarn On |
<LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$"> |
<LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$"> |
PerlAuthzHandler 'sub { return OK }' |
PerlAuthenHandler 'sub { return OK }' |
</LocationMatch> |
</LocationMatch> |
|
|
# Send proper expires header to avoid unnecessary HTTP request for static content |
# Send proper expires header to avoid unnecessary HTTP request for static content |
<LocationMatch "^(/adm/lonIcons|/adm/jQuery|/res/adm/pages|/ckeditor|/adm/jpicker|/adm/countdown|/adm/spellchecker|/adm/nicescroll|/adm/MathJax)"> |
<LocationMatch "^(/adm/lonIcons|/adm/jQuery|/adm/jsMath|/res/adm/pages|/ckeditor)"> |
ExpiresActive On |
ExpiresActive On |
ExpiresDefault "access plus 12 hours" |
ExpiresDefault "access plus 12 hours" |
Header set Cache-Control "public, no-transform" |
Header set Cache-Control "public, no-transform" |
Line 131 ErrorDocument 500 /adm/errorhandler
|
Line 131 ErrorDocument 500 /adm/errorhandler
|
</Location> |
</Location> |
|
|
<LocationMatch "^/+userfiles.*"> |
<LocationMatch "^/+userfiles.*"> |
Options +FollowSymLinks -Includes |
|
PerlAccessHandler Apache::lontokacc |
PerlAccessHandler Apache::lontokacc |
PerlCleanupHandler Apache::lontokacc::removefile |
PerlCleanupHandler Apache::lontokacc::removefile |
PerlCleanupHandler Apache::lonacc::cleanup |
PerlCleanupHandler Apache::lonacc::cleanup |
Line 150 ErrorDocument 406 /adm/roles
|
Line 149 ErrorDocument 406 /adm/roles
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+uploaded/.+/.+/(portfolio|feedback|docs|groups|supplemental)/.+"> |
|
Options +FollowSymLinks -Includes |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/+editupload.*"> |
<LocationMatch "^/+editupload.*"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 275 ErrorDocument 406 /adm/notinit.html
|
Line 270 ErrorDocument 406 /adm/notinit.html
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/adm/.*/ext\.tool$"> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::londatecheck |
|
PerlHandler Apache::lonipcheck |
|
PerlHandler Apache::lonexttool |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/notinit.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<Location /adm/exturlcheck> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonexturlcheck |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<LocationMatch "^/+priv/.*"> |
<LocationMatch "^/+priv/.*"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 311 ErrorDocument 406 /adm/unauthorized
|
Line 281 ErrorDocument 406 /adm/unauthorized
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+webdav/[\w\-.]+/\w[\w.\-\@]+/"> |
<LocationMatch "^/+webdav/[\w\-]+/[\w\-]+/"> |
<IfModule mod_dav.c> |
<IfModule mod_dav.c> |
<IfModule mod_ssl.c> |
<IfModule mod_ssl.c> |
AuthType Basic |
AuthType Basic |
Line 446 ErrorDocument 413 /adm/overloaded.tx
|
Line 416 ErrorDocument 413 /adm/overloaded.tx
|
<LocationMatch "^/adm/bombs/"> |
<LocationMatch "^/adm/bombs/"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
SetHandler perl-script |
|
PerlAuthzHandler Apache::lonacc |
PerlHandler Apache::lonmeta |
PerlHandler Apache::lonmeta |
</LocationMatch> |
</LocationMatch> |
|
|
Line 541 ErrorDocument 403 /adm/login
|
Line 511 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<Location /adm/indexcourse> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonindexcourse |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<Location /adm/statistics> |
<Location /adm/statistics> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 584 ErrorDocument 403 /adm/login
|
Line 564 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
<Location /adm/remote> |
<Location /adm/pickresource> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
PerlAuthzHandler Apache::lonacc |
PerlAuthzHandler Apache::lonacc |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonremote |
PerlHandler Apache::lonpickresource |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
Line 661 SetHandler perl-script
|
Line 641 SetHandler perl-script
|
PerlHandler Apache::lonlogin |
PerlHandler Apache::lonlogin |
</Location> |
</Location> |
|
|
<LocationMatch "^/+adm/launch/tiny/[\w.-]+/\w+"> |
|
SetHandler perl-script |
|
PerlHandler Apache::ltiauth |
|
</LocationMatch> |
|
|
|
<Location /adm/restrictedaccess> |
<Location /adm/restrictedaccess> |
PerlAccessHandler Apache::publiccheck |
PerlAccessHandler Apache::publiccheck |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
SetHandler perl-script |
|
PerlAuthzHandler Apache::lonacc |
PerlHandler Apache::restrictedaccess |
PerlHandler Apache::restrictedaccess |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
Line 680 ErrorDocument 500 /adm/errorhandler
|
Line 655 ErrorDocument 500 /adm/errorhandler
|
PerlAccessHandler Apache::publiccheck |
PerlAccessHandler Apache::publiccheck |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::blockedaccess |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/protected> |
|
PerlAccessHandler Apache::publiccheck |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
PerlAuthzHandler Apache::lonacc |
SetHandler perl-script |
PerlHandler Apache::blockedaccess |
PerlHandler Apache::lonprotected |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 729 PerlHandler Apache::migrateuser
|
Line 693 PerlHandler Apache::migrateuser
|
</Location> |
</Location> |
|
|
<Location /adm/sso> |
<Location /adm/sso> |
Header set Cache-Control "private,no-store,no-cache,max-age=0" |
|
<IfModule mod_shib> |
<IfModule mod_shib> |
AuthType shibboleth |
AuthType shibboleth |
ShibUseEnvironment On |
ShibUseEnvironment On |
Line 738 PerlHandler Apache::migrateuser
|
Line 701 PerlHandler Apache::migrateuser
|
require valid-user |
require valid-user |
PerlAuthzHandler Apache::lonshibacc |
PerlAuthzHandler Apache::lonshibacc |
PerlAuthzHandler Apache::lonacc |
PerlAuthzHandler Apache::lonacc |
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</IfModule> |
</IfModule> |
<IfModule !mod_shib> |
<IfModule !mod_shib> |
PerlTypeHandler Apache::lonnoshib |
PerlTypeHandler Apache::lonnoshib |
Line 756 ErrorDocument 403 /adm/login
|
Line 717 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
<Location /adm/annotation> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::admannotations |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/spellcheck> |
<Location /adm/spellcheck> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 1361 PerlHandler Apache::groupsort
|
Line 1312 PerlHandler Apache::groupsort
|
PerlCleanupHandler Apache::groupsort::cleanup |
PerlCleanupHandler Apache::groupsort::cleanup |
PerlCleanupHandler Apache::lonacc::cleanup |
PerlCleanupHandler Apache::lonacc::cleanup |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 1373 SetHandler perl-script
|
Line 1323 SetHandler perl-script
|
PerlHandler Apache::lonwishlistdisplay |
PerlHandler Apache::lonwishlistdisplay |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 406 /adm/roles |
ErrorDocument 406 /adm/roles |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
<Location /adm/setblock> |
<Location /adm/setblock> |
Line 1396 SetHandler perl-script
|
Line 1346 SetHandler perl-script
|
PerlHandler Apache::lonblockingstatus |
PerlHandler Apache::lonblockingstatus |
</Location> |
</Location> |
|
|
<Location /adm/accesstimes> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonaccesstimes |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/errorhandler> |
<Location /adm/errorhandler> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonerrorhandler |
PerlHandler Apache::lonerrorhandler |
Line 1488 PerlHandler Apache::spellcheck
|
Line 1427 PerlHandler Apache::spellcheck
|
</LocationMatch> |
</LocationMatch> |
|
|
|
|
<LocationMatch "^/tiny/[\w.-]+/\w+$"> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lontiny |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
# ------------------------------------------------- Backdoor Adm Tests/Programs |
# ------------------------------------------------- Backdoor Adm Tests/Programs |
|
|
Line 1533 AllowOverride None
|
Line 1462 AllowOverride None
|
# Allow uploaded files to be served |
# Allow uploaded files to be served |
|
|
<Directory "/home/httpd/lonUsers"> |
<Directory "/home/httpd/lonUsers"> |
Options FollowSymLinks |
Options Includes FollowSymLinks |
AllowOverride None |
AllowOverride None |
<IfModule mod_authz_core.c> |
<IfModule mod_authz_core.c> |
Require all granted |
Require all granted |
Line 1544 AllowOverride None
|
Line 1473 AllowOverride None
|
</IfModule> |
</IfModule> |
</Directory> |
</Directory> |
|
|
|
# Allow construction space files to be served |
|
|
|
<Directory "/home/*/public_html/" > |
|
Options Includes FollowSymLinks |
|
AllowOverride |
|
<IfModule mod_authz_core.c> |
|
Require all granted |
|
</IfModule> |
|
<IfModule !mod_authz_core.c> |
|
order allow,deny |
|
allow from all |
|
</IfModule> |
|
</Directory> |
|
|
# Yes to symbolic links and server-side includes |
# Yes to symbolic links and server-side includes |
|
|
<Directory /home/httpd/html> |
<Directory /home/httpd/html> |
Options FollowSymLinks |
Options Includes FollowSymLinks |
AllowOverride None |
AllowOverride None |
<IfModule mod_authz_core.c> |
<IfModule mod_authz_core.c> |
Require all granted |
Require all granted |
Line 1575 Options ExecCGI FollowSymLinks
|
Line 1518 Options ExecCGI FollowSymLinks
|
# Allow serving of files in prtspool |
# Allow serving of files in prtspool |
|
|
<Directory "/home/httpd/prtspool/"> |
<Directory "/home/httpd/prtspool/"> |
Options FollowSymLinks |
Options Includes FollowSymLinks |
AllowOverride None |
AllowOverride None |
<IfModule mod_authz_core.c> |
<IfModule mod_authz_core.c> |
Require all granted |
Require all granted |
Line 1589 AllowOverride None
|
Line 1532 AllowOverride None
|
# Allow serving of files in zipspool |
# Allow serving of files in zipspool |
|
|
<Directory "/home/httpd/zipspool/"> |
<Directory "/home/httpd/zipspool/"> |
Options FollowSymLinks |
Options Includes FollowSymLinks |
AllowOverride None |
AllowOverride None |
<IfModule mod_authz_core.c> |
<IfModule mod_authz_core.c> |
Require all granted |
Require all granted |
Line 1603 AllowOverride None
|
Line 1546 AllowOverride None
|
# Allow serving of files in captchaspool |
# Allow serving of files in captchaspool |
|
|
<Directory "/home/httpd/captchaspool/"> |
<Directory "/home/httpd/captchaspool/"> |
Options FollowSymLinks |
Options Includes FollowSymLinks |
AllowOverride None |
AllowOverride None |
<IfModule mod_authz_core.c> |
<IfModule mod_authz_core.c> |
Require all granted |
Require all granted |
Line 1618 AllowOverride None
|
Line 1561 AllowOverride None
|
DirectoryIndex disabled |
DirectoryIndex disabled |
</DirectoryMatch> |
</DirectoryMatch> |
|
|
<DirectoryMatch "^/home/httpd/html/res/.+/"> |
|
DirectoryIndex disabled |
|
</DirectoryMatch> |
|
|
|
# ============================================================= Access Handlers |
# ============================================================= Access Handlers |
|
|
# ------------------------------------------------- Allow server-status reports |
# ------------------------------------------------- Allow server-status reports |
Line 1654 Options Indexes FollowSymLinks
|
Line 1593 Options Indexes FollowSymLinks
|
# ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************ |
# ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************ |
# ====================================== Internal Settings / Perl Configuration |
# ====================================== Internal Settings / Perl Configuration |
|
|
PerlSetVar lonVersion '<!-- VERSION -->' |
PerlSetVar lonVersion '<!-- VERSION -->' |
PerlSetVar lonIDsDir /home/httpd/lonIDs |
PerlSetVar lonIDsDir /home/httpd/lonIDs |
PerlSetVar lonBalanceDir /home/httpd/balanceIDs |
|
PerlSetVar lonDAVsessDir /home/httpd/webdav/sessionIDs |
PerlSetVar lonDAVsessDir /home/httpd/webdav/sessionIDs |
PerlSetVar lonTabDir /home/httpd/lonTabs |
PerlSetVar lonTabDir /home/httpd/lonTabs |
PerlSetVar lonUsersDir /home/httpd/lonUsers |
PerlSetVar lonUsersDir /home/httpd/lonUsers |
PerlSetVar lonIconsURL /adm/lonIcons |
PerlSetVar lonIconsURL /adm/lonIcons |
PerlSetVar londPort 5663 |
PerlSetVar londPort 5663 |
PerlSetVar lonSysEMail techsupport@loncapa.org |
PerlSetVar lonSysEMail korte@lite.msu.edu |
PerlSetVar lonDaemons /home/httpd/perl |
PerlSetVar lonDaemons /home/httpd/perl |
PerlSetVar lonLib /home/httpd/lib |
PerlSetVar lonLib /home/httpd/lib |
PerlSetVar lonSockDir /home/httpd/sockets |
PerlSetVar lonSockDir /home/httpd/sockets |
Line 1673 PerlSetVar lonIncludes /home/http
|
Line 1611 PerlSetVar lonIncludes /home/http
|
PerlSetVar lonZipDir /home/httpd/zipspool |
PerlSetVar lonZipDir /home/httpd/zipspool |
PerlSetVar lonCaptchaDir /home/httpd/captchaspool |
PerlSetVar lonCaptchaDir /home/httpd/captchaspool |
PerlSetVar lonCaptchaDb /home/httpd/captchadb |
PerlSetVar lonCaptchaDb /home/httpd/captchadb |
PerlSetVar lonLTIDir /home/httpd/lonLTItmp |
|
PerlSetVar ltiIDsDir /home/httpd/ltiIDs |
|
PerlSetVar lonFontsDir /home/httpd/html/adm/fonts |
PerlSetVar lonFontsDir /home/httpd/html/adm/fonts |
# & separated list of % separated fields in order of |
# & separated list of : separated fields in order of |
# - internal name to call it, |
# - internal name to call it, |
# - regexp that it should match (done case-insensitively) |
# - regexp that it should match (done case-insensitively) |
# - regexp that is should not match (done case-insensitively) |
# - regexp that is should not match (done case-insensitively) |
Line 1684 PerlSetVar lonFontsDir /home/h
|
Line 1620 PerlSetVar lonFontsDir /home/h
|
# - a number that describes the minimum version that has mathml support |
# - a number that describes the minimum version that has mathml support |
# - a number that describes the minimum number version that has unicode support |
# - a number that describes the minimum number version that has unicode support |
|
|
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 |
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 |
|
|
PerlSetVar lonTextBrowsers windows\s+ce:lynx |
PerlSetVar lonTextBrowsers windows\s+ce:lynx |
PerlSetVar lonScansDir /home/httpd/scantron |
PerlSetVar lonScansDir /home/httpd/scantron |
PerlSetVar lonScriptTimeout 10 |
PerlSetVar lonScriptTimeout 10 |
PerlSetVar BugzillaHost https://bugs.loncapa.org/ |
PerlSetVar BugzillaHost http://bugs.lon-capa.org/ |
PerlSetVar FAQHost http://help.lon-capa.org/ |
PerlSetVar FAQHost http://help.lon-capa.org/ |
# ----------------------------------------------------------------------------- |
# ----------------------------------------------------------------------------- |
# NOTE: lonSqlAccess key is the password for the MySQL user |
# NOTE: lonSqlAccess key is the password for the MySQL user |