version 1.215.2.22.2.2, 2019/02/06 22:19:37
|
version 1.248, 2016/07/25 19:49:45
|
Line 68 PerlAuthzHandler 'sub { return OK }'
|
Line 68 PerlAuthzHandler '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|/res/adm/pages|/ckeditor|/adm/jpicker|/adm/countdown|/adm/spellchecker|/adm/nicescroll|/adm/MathJax|/adm/daxe)"> |
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 270 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$"> |
<LocationMatch "^/adm/.*/exttools?$"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
PerlAuthzHandler Apache::lonacc |
PerlAuthzHandler Apache::lonacc |
Line 283 ErrorDocument 406 /adm/notinit.html
|
Line 283 ErrorDocument 406 /adm/notinit.html
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
|
<LocationMatch "^/adm/placement$"> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonplacementtest |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/notinit.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
<LocationMatch "^/+priv/.*"> |
<LocationMatch "^/+priv/.*"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 458 SetHandler perl-script
|
Line 469 SetHandler perl-script
|
PerlHandler Apache::lonxml |
PerlHandler Apache::lonxml |
</LocationMatch> |
</LocationMatch> |
|
|
|
<LocationMatch "^/daxe(page|open)/priv/"> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::loncacc |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/daxe(page|open)/uploaded/"> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/daxepage/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$"> |
|
SetHandler perl-script |
|
PerlHandler Apache::daxepage |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/daxepage/uploaded/[^/]+/[^/]+/.*html?$"> |
|
SetHandler perl-script |
|
PerlHandler Apache::daxepage |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/daxeopen/priv/.*\.(task|problem|exam|quiz|assess|survey|library|xml|html|htm|xhtml|xhtm)$"> |
|
SetHandler perl-script |
|
PerlHandler Apache::daxeopen |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/daxeopen/priv/.*/$"> |
|
SetHandler perl-script |
|
PerlHandler Apache::daxeopen |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/daxeopen/uploaded/[^/]+/[^/]+/.*html?$"> |
|
SetHandler perl-script |
|
PerlHandler Apache::daxeopen |
|
</LocationMatch> |
|
|
|
<LocationMatch "(?i)^/daxeopen/priv/.+\.(?!task$|problem$|exam$|quiz$|assess$|survey$|library$|xml$|html$|htm$|xhtml$|xhtm$)[^.]*$"> |
|
<IfModule mod_rewrite.c> |
|
RewriteEngine on |
|
RewriteRule /daxeopen/(.*) /$1 |
|
</IfModule> |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/daxesave$"> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::daxesave |
|
</LocationMatch> |
|
|
|
<Location /adm/coursepub> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::loncoursepub |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<LocationMatch "^/adm/wrapper/"> |
<LocationMatch "^/adm/wrapper/"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 524 ErrorDocument 403 /adm/login
|
Line 605 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 567 ErrorDocument 403 /adm/login
|
Line 658 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 1315 PerlHandler Apache::groupsort
|
Line 1406 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 1327 SetHandler perl-script
|
Line 1417 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 1350 SetHandler perl-script
|
Line 1440 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 1441 SetHandler perl-script
|
Line 1520 SetHandler perl-script
|
PerlHandler Apache::spellcheck |
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 1486 AllowOverride None
|
Line 1556 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 1497 AllowOverride None
|
Line 1567 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 1528 Options ExecCGI FollowSymLinks
|
Line 1612 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 1542 AllowOverride None
|
Line 1626 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 1556 AllowOverride None
|
Line 1640 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 1607 Options Indexes FollowSymLinks
|
Line 1691 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 lonDAVsessDir /home/httpd/webdav/sessionIDs |
PerlSetVar lonDAVsessDir /home/httpd/webdav/sessionIDs |
PerlSetVar lonTabDir /home/httpd/lonTabs |
PerlSetVar lonTabDir /home/httpd/lonTabs |
Line 1679 PerlSetVar lonCertificateDirectory /home
|
Line 1763 PerlSetVar lonCertificateDirectory /home
|
|
|
PerlSetVar lonnetCertificateAuthority loncapaCA.pem |
PerlSetVar lonnetCertificateAuthority loncapaCA.pem |
PerlSetVar lonnetCertificate lonhostcert.pem |
PerlSetVar lonnetCertificate lonhostcert.pem |
|
PerlSetVar lonnetHostnameCertificate lonhostnamecert.pem |
|
|
# |
# |
# To generate the request for a certificate, and to negotiate the |
# To generate the request for a certificate, and to negotiate the |