version 1.185.8.1, 2009/08/12 19:07:18
|
version 1.262, 2018/01/12 13:34:08
|
Line 1
|
Line 1
|
## |
## |
## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file |
## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file |
## |
## |
## $Id$ |
|
## |
# $Id$ |
|
|
# |
# |
# LON-CAPA Section (extensions to httpd.conf daemon configuration) |
# LON-CAPA Section (extensions to httpd.conf daemon configuration) |
Line 18 Group www
|
Line 18 Group www
|
|
|
# ======================================================= Shared Object Modules |
# ======================================================= Shared Object Modules |
|
|
LoadModule perl_module modules/libperl.so |
<IfModule !perl_module> |
|
LoadModule perl_module modules/libperl.so |
|
</IfModule> |
<IfDefine !MODPERL2> |
<IfDefine !MODPERL2> |
AddModule mod_perl.c |
AddModule mod_perl.c |
</IfDefine> |
</IfDefine> |
Line 28 PerlSetVar MODPERL2 1
|
Line 30 PerlSetVar MODPERL2 1
|
</IfDefine> |
</IfDefine> |
# =============================================================== Miscellaneous |
# =============================================================== Miscellaneous |
|
|
ServerAdmin korte@lite.msu.edu |
ServerAdmin consortium@loncapa.org |
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 38 ExtendedStatus On
|
Line 40 ExtendedStatus On
|
Alias /zipspool/ /home/httpd/zipspool/ |
Alias /zipspool/ /home/httpd/zipspool/ |
Alias /prtspool/ /home/httpd/prtspool/ |
Alias /prtspool/ /home/httpd/prtspool/ |
Alias /captchaspool/ /home/httpd/captchaspool/ |
Alias /captchaspool/ /home/httpd/captchaspool/ |
|
Alias /webdav/ /home/httpd/html/priv/ |
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/" |
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/" |
|
<IfModule mod_dav_fs.c> |
|
DAVLockDB /home/httpd/webdav/DAVLock |
|
</IfModule> |
|
|
# ================================================================= Directories |
# ================================================================= Directories |
|
|
Line 50 PerlCleanupHandler Apache::lonacc::clean
|
Line 56 PerlCleanupHandler Apache::lonacc::clean
|
PerlAuthenHandler Apache::checkauthen |
PerlAuthenHandler Apache::checkauthen |
PerlSetVar lonOtherAuthen no |
PerlSetVar lonOtherAuthen no |
|
|
|
<IfModule mod_shib> |
|
PerlAuthenHandler Apache::lonshibauth |
|
PerlSetVar lonOtherAuthen yes |
|
PerlSetVar lonOtherAuthenType Shibboleth |
|
</IfModule> |
|
|
#PerlWarn On |
#PerlWarn On |
<LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$"> |
<LocationMatch "^/+res/adm/pages/[^/]+\.(gif|png)$"> |
PerlAuthenHandler 'sub { return OK }' |
PerlAuthzHandler 'sub { return OK }' |
|
</LocationMatch> |
|
|
|
# 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|/adm/daxe)"> |
|
ExpiresActive On |
|
ExpiresDefault "access plus 12 hours" |
|
Header set Cache-Control "public, no-transform" |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+res.*"> |
<LocationMatch "^/+res.*"> |
Line 99 SetHandler perl-script
|
Line 118 SetHandler perl-script
|
PerlHandler Apache::portfolio |
PerlHandler Apache::portfolio |
</Location> |
</Location> |
|
|
|
<Location /adm/pdfupload> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonpdfupload |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<LocationMatch "^/+userfiles.*"> |
<LocationMatch "^/+userfiles.*"> |
PerlAccessHandler Apache::lontokacc |
PerlAccessHandler Apache::lontokacc |
PerlCleanupHandler Apache::lontokacc::removefile |
PerlCleanupHandler Apache::lontokacc::removefile |
PerlCleanupHandler Apache::lonacc::cleanup |
PerlCleanupHandler Apache::lonacc::cleanup |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/pdfupload.*"> |
|
SetHandler perl-script |
|
PerlHandler Apache::lonpdfupload |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/+uploaded.*"> |
<LocationMatch "^/+uploaded.*"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 244 ErrorDocument 406 /adm/notinit.html
|
Line 270 ErrorDocument 406 /adm/notinit.html
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+priv.*"> |
<LocationMatch "^/adm/.*/ext\.tool$"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
PerlAuthzHandler Apache::loncacc |
PerlAuthzHandler Apache::lonacc |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonconstruct |
PerlHandler Apache::londatecheck |
ErrorDocument 403 /adm/login |
PerlHandler Apache::lonipcheck |
|
PerlHandler Apache::lonexttool |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 406 /adm/notinit.html |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+raw.*"> |
<LocationMatch "^/adm/placement$"> |
PerlAccessHandler Apache::lonracc |
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> |
|
|
<LocationMatch "^/+\~.*"> |
<LocationMatch "^/+priv/.*"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
PerlAuthzHandler Apache::loncacc |
PerlAuthzHandler Apache::loncacc |
|
SetHandler perl-script |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
|
<LocationMatch "^/+webdav/[\w\-.]+/\w[\w.\-\@]+/"> |
|
<IfModule mod_dav.c> |
|
<IfModule mod_ssl.c> |
|
AuthType Basic |
|
AuthName "LONCAPA username,domain" |
|
Require valid-user |
|
SSLRequireSSL |
|
PerlAuthenHandler Apache::lonwebdavauth |
|
PerlAuthzHandler Apache::lonwebdavacc |
|
Dav On |
|
DirectoryIndex index.missing |
|
Options Indexes FollowSymLinks |
|
ErrorDocument 403 /adm/nowebdav.html |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized |
|
ErrorDocument 500 /adm/errorhandler |
|
</IfModule> |
|
<IfModule !mod_ssl.c> |
|
<IfModule mod_rewrite.c> |
|
RewriteEngine on |
|
RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L] |
|
</IfModule> |
|
</IfModule> |
|
</IfModule> |
|
<IfModule !mod_dav.c> |
|
<IfModule mod_rewrite.c> |
|
RewriteEngine on |
|
RewriteRule .* http://%{HTTP_HOST}/adm/nowebdav.html [L] |
|
</IfModule> |
|
</IfModule> |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/+raw.*"> |
|
PerlAccessHandler Apache::lonracc |
|
</LocationMatch> |
|
|
<LocationMatch "^/adm/helper/.*\.helper$"> |
<LocationMatch "^/adm/helper/.*\.helper$"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 305 ErrorDocument 500 /adm/errorhandler
|
Line 376 ErrorDocument 500 /adm/errorhandler
|
</LocationMatch> |
</LocationMatch> |
# ------------------------------------------------------------------------- RAT |
# ------------------------------------------------------------------------- RAT |
|
|
<LocationMatch "^/\~.*\.sequence$"> |
<LocationMatch "^/+priv/.*\.sequence$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonratedt |
PerlHandler Apache::lonratedt |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/\~.*\.page$"> |
<LocationMatch "^/+priv/.*\.page$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonratedt |
PerlHandler Apache::lonratedt |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/\~.*\/ratserver$"> |
<LocationMatch "^/+priv/.*\/ratserver$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonratsrv |
PerlHandler Apache::lonratsrv |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/\~.*\/adveditmenu$"> |
<LocationMatch "^/+priv/.*\/adveditmenu$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonratmenu |
PerlHandler Apache::lonratmenu |
</LocationMatch> |
</LocationMatch> |
Line 344 PerlCleanupHandler Apache::lonindexer::c
|
Line 415 PerlCleanupHandler Apache::lonindexer::c
|
PerlCleanupHandler Apache::lonacc::cleanup |
PerlCleanupHandler Apache::lonacc::cleanup |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+(res|\~).*\.tex$"> |
<LocationMatch "^/+res.*\.tex$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lontex |
PerlHandler Apache::lontex |
</LocationMatch> |
</LocationMatch> |
Line 359 SetHandler perl-script
|
Line 430 SetHandler perl-script
|
PerlHandler Apache::lonsequence |
PerlHandler Apache::lonsequence |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+(res|\~|public|uploaded|editupload|adm).*\.meta$"> |
<LocationMatch "^/+(res|priv|public|uploaded|editupload|adm)/.*\.meta$"> |
PerlAccessHandler Apache::publiccheck |
PerlAccessHandler Apache::publiccheck |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonmeta |
PerlHandler Apache::lonmeta |
Line 369 ErrorDocument 413 /adm/overloaded.tx
|
Line 440 ErrorDocument 413 /adm/overloaded.tx
|
<LocationMatch "^/adm/bombs/"> |
<LocationMatch "^/adm/bombs/"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
SetHandler perl-script |
|
PerlAuthzHandler Apache::lonacc |
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
PerlHandler Apache::lonmeta |
PerlHandler Apache::lonmeta |
</LocationMatch> |
</LocationMatch> |
|
|
|
|
|
|
<LocationMatch "^/+(res|\~).*\.rights$"> |
<LocationMatch "^/+(res|priv)/.*\.rights$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonrights |
PerlHandler Apache::lonrights |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+(uploaded|res|\~).*\.(xml|html|htm|xhtml|xhtm|sty)$"> |
<LocationMatch "^/+(uploaded|res|priv)/.*\.(xml|html|htm|xhtml|xhtm|sty)$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::londatecheck |
PerlHandler Apache::londatecheck |
PerlHandler Apache::lonipcheck |
PerlHandler Apache::lonipcheck |
PerlHandler Apache::lonxml |
PerlHandler Apache::lonxml |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+(res|\~).*\.(task|problem|exam|quiz|assess|survey|form|library)$"> |
<LocationMatch "^/+(res|priv).*\.(task|problem|exam|quiz|assess|survey|form|library)$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonhomework |
PerlHandler Apache::lonhomework |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/+\~.*\.(js|css|txt)$"> |
<LocationMatch "^/+priv/.*\.(js|css|txt|tex)$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonxml |
PerlHandler Apache::lonxml |
</LocationMatch> |
</LocationMatch> |
|
|
|
<LocationMatch "^/daxepage/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 "^/daxeopen/"> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
</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/$"> |
|
SetHandler perl-script |
|
PerlHandler Apache::daxeopen |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/daxeopen/(res|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 "(?i)^/daxeopen/(res/.*\.(jpg|jpeg|gif|png|svg))$"> |
|
<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 454 ErrorDocument 403 /adm/login
|
Line 613 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<Location /adm/searchcourse> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonsearchcourse |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</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 497 ErrorDocument 403 /adm/login
|
Line 676 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> |
|
|
<Location /adm/pickauthor> |
<Location /adm/pickauthor> |
Line 558 ErrorDocument 403 /adm/login
|
Line 737 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<Location /adm/dependencies> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::londependencies |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<Location /adm/login> |
<Location /adm/login> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonlogin |
PerlHandler Apache::lonlogin |
</Location> |
</Location> |
|
|
|
<LocationMatch "^/+adm/lti($|/)"> |
|
SetHandler perl-script |
|
PerlHandler Apache::ltiauth |
|
</LocationMatch> |
|
|
|
<Location /adm/service/passback> |
|
SetHandler perl-script |
|
PerlHandler Apache::ltipassback |
|
</Location> |
|
|
|
<Location /adm/service/roster> |
|
SetHandler perl-script |
|
PerlHandler Apache::ltiroster |
|
</Location> |
|
|
<Location /adm/restrictedaccess> |
<Location /adm/restrictedaccess> |
PerlAccessHandler Apache::publiccheck |
PerlAccessHandler Apache::publiccheck |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
SetHandler perl-script |
|
PerlAuthzHandler Apache::lonacc |
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
PerlHandler Apache::restrictedaccess |
PerlHandler Apache::restrictedaccess |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
Line 577 ErrorDocument 500 /adm/errorhandler
|
Line 782 ErrorDocument 500 /adm/errorhandler
|
PerlAccessHandler Apache::publiccheck |
PerlAccessHandler Apache::publiccheck |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
SetHandler perl-script |
|
PerlAuthzHandler Apache::lonacc |
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
PerlHandler Apache::blockedaccess |
PerlHandler Apache::blockedaccess |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
Line 614 SetHandler perl-script
|
Line 819 SetHandler perl-script
|
PerlHandler Apache::migrateuser |
PerlHandler Apache::migrateuser |
</Location> |
</Location> |
|
|
|
<Location /adm/sso> |
|
<IfModule mod_shib> |
|
AuthType shibboleth |
|
ShibUseEnvironment On |
|
ShibRequestSetting requireSession 1 |
|
ShibRequestSetting redirectToSSL 443 |
|
require valid-user |
|
PerlAuthzHandler Apache::lonshibacc |
|
PerlAuthzHandler Apache::lonacc |
|
</IfModule> |
|
<IfModule !mod_shib> |
|
PerlTypeHandler Apache::lonnoshib |
|
</IfModule> |
|
</Location> |
|
|
<Location /adm/annotations> |
<Location /adm/annotations> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 634 ErrorDocument 403 /adm/login
|
Line 854 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
<Location /adm/bookmarks> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::admbookmarks |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/flip> |
<Location /adm/flip> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 820 ErrorDocument 406 /adm/unauthorized
|
Line 1030 ErrorDocument 406 /adm/unauthorized
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
<LocationMatch "^/+\~.*/$"> |
<LocationMatch "^/+priv/.*/$"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
PerlAuthzHandler Apache::loncacc |
PerlAuthzHandler Apache::loncacc |
Line 832 ErrorDocument 406 /adm/unauthorized
|
Line 1042 ErrorDocument 406 /adm/unauthorized
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<Location /adm/pubdir> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonpubdir |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/unauthorized> |
<Location /adm/unauthorized> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 1096 ErrorDocument 403 /adm/login
|
Line 1294 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<Location /adm/supplemental> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::londocs |
|
PerlCleanupHandler Apache::londocs::untiehash |
|
PerlCleanupHandler Apache::lonacc::cleanup |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<Location /adm/imsimportdocs> |
<Location /adm/imsimportdocs> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 1106 ErrorDocument 403 /adm/login
|
Line 1316 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<Location /adm/extresedit> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonextresedit |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<LocationMatch "^/adm/announcements"> |
<LocationMatch "^/adm/announcements"> |
AuthType LONCAPA |
AuthType LONCAPA |
Require valid-user |
Require valid-user |
Line 1219 PerlHandler Apache::groupsort
|
Line 1439 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> |
|
|
|
<Location /adm/wishlist> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonwishlistdisplay |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/setblock> |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonblockingmenu |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/blockingstatus> |
|
PerlAccessHandler Apache::publiccheck |
|
AuthType LONCAPA |
|
Require valid-user |
|
PerlAuthzHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonblockingstatus |
|
</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 1261 PerlHandler Apache::lonsupportreq
|
Line 1524 PerlHandler Apache::lonsupportreq
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/adm/css"> |
<LocationMatch "^/adm/css/.*\.css$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::loncss |
PerlHandler Apache::loncss |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
Line 1297 PerlHandler Apache::londns
|
Line 1560 PerlHandler Apache::londns
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
|
<LocationMatch "^/ajax/spellcheck"> |
|
SetHandler perl-script |
|
PerlHandler Apache::spellcheck |
|
</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 |
|
|
<Location /adm/test> |
<Location /adm/test> |
Line 1319 PerlChildExitHandler Apache::lonacc::goo
|
Line 1598 PerlChildExitHandler Apache::lonacc::goo
|
<Directory /> |
<Directory /> |
Options None |
Options None |
AllowOverride None |
AllowOverride None |
order deny,allow |
<IfModule mod_authz_core.c> |
deny from all |
Require all denied |
|
</IfModule> |
|
<IfModule !mod_authz_core.c> |
|
order deny,allow |
|
deny from all |
|
</IfModule> |
</Directory> |
</Directory> |
|
|
# Allow uploaded files to be served |
# Allow uploaded files to be served |
|
|
<Directory "/home/httpd/lonUsers"> |
<Directory "/home/httpd/lonUsers"> |
Options Includes FollowSymLinks |
Options FollowSymLinks |
AllowOverride None |
AllowOverride None |
order allow,deny |
<IfModule mod_authz_core.c> |
allow from all |
Require all granted |
|
</IfModule> |
|
<IfModule !mod_authz_core.c> |
|
order allow,deny |
|
allow from all |
|
</IfModule> |
</Directory> |
</Directory> |
|
|
# Allow construction space files to be served |
|
|
|
<Directory "/home/*/public_html/" > |
|
Options Includes FollowSymLinks |
|
AllowOverride |
|
order allow,deny |
|
allow from all |
|
</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 Includes FollowSymLinks |
Options FollowSymLinks |
AllowOverride None |
AllowOverride None |
order allow,deny |
<IfModule mod_authz_core.c> |
allow from all |
Require all granted |
|
</IfModule> |
|
<IfModule !mod_authz_core.c> |
|
order allow,deny |
|
allow from all |
|
</IfModule> |
</Directory> |
</Directory> |
|
|
# If it is in cgi-bin, then it can be executed as a CGI script. |
# If it is in cgi-bin, then it can be executed as a CGI script. |
Line 1355 allow from all
|
Line 1640 allow from all
|
<Directory /home/httpd/cgi-bin> |
<Directory /home/httpd/cgi-bin> |
AllowOverride None |
AllowOverride None |
Options ExecCGI FollowSymLinks |
Options ExecCGI FollowSymLinks |
order allow,deny |
<IfModule mod_authz_core.c> |
allow from all |
Require all granted |
|
</IfModule> |
|
<IfModule !mod_authz_core.c> |
|
order allow,deny |
|
allow from all |
|
</IfModule> |
</Directory> |
</Directory> |
|
|
# Allow serving of files in prtspool |
# Allow serving of files in prtspool |
|
|
<Directory "/home/httpd/prtspool/"> |
<Directory "/home/httpd/prtspool/"> |
Options Includes FollowSymLinks |
Options FollowSymLinks |
AllowOverride None |
AllowOverride None |
order allow,deny |
<IfModule mod_authz_core.c> |
allow from all |
Require all granted |
|
</IfModule> |
|
<IfModule !mod_authz_core.c> |
|
order allow,deny |
|
allow from all |
|
</IfModule> |
</Directory> |
</Directory> |
|
|
# Allow serving of files in zipspool |
# Allow serving of files in zipspool |
|
|
<Directory "/home/httpd/zipspool/"> |
<Directory "/home/httpd/zipspool/"> |
Options Includes FollowSymLinks |
Options FollowSymLinks |
AllowOverride None |
AllowOverride None |
order allow,deny |
<IfModule mod_authz_core.c> |
allow from all |
Require all granted |
|
</IfModule> |
|
<IfModule !mod_authz_core.c> |
|
order allow,deny |
|
allow from all |
|
</IfModule> |
</Directory> |
</Directory> |
|
|
# Allow serving of files in captchaspool |
# Allow serving of files in captchaspool |
|
|
<Directory "/home/httpd/captchaspool/"> |
<Directory "/home/httpd/captchaspool/"> |
Options Includes FollowSymLinks |
Options FollowSymLinks |
AllowOverride None |
AllowOverride None |
order allow,deny |
<IfModule mod_authz_core.c> |
allow from all |
Require all granted |
|
</IfModule> |
|
<IfModule !mod_authz_core.c> |
|
order allow,deny |
|
allow from all |
|
</IfModule> |
</Directory> |
</Directory> |
|
|
|
<DirectoryMatch "^/home/httpd/html/priv/.+/"> |
|
DirectoryIndex disabled |
|
</DirectoryMatch> |
|
|
|
<DirectoryMatch "^/home/httpd/html/res/.+/"> |
|
DirectoryIndex disabled |
|
</DirectoryMatch> |
|
|
# ============================================================= Access Handlers |
# ============================================================= Access Handlers |
|
|
# ------------------------------------------------- Allow server-status reports |
# ------------------------------------------------- Allow server-status reports |
Line 1404 ErrorDocument 500 /adm/errorhandler
|
Line 1717 ErrorDocument 500 /adm/errorhandler
|
# ------------------- Allow access to local system documentation from localhost |
# ------------------- Allow access to local system documentation from localhost |
Alias /doc /usr/doc |
Alias /doc /usr/doc |
<Directory /usr/doc> |
<Directory /usr/doc> |
order deny,allow |
|
deny from all |
|
allow from localhost |
|
Options Indexes FollowSymLinks |
Options Indexes FollowSymLinks |
|
<IfModule mod_authz_host.c> |
|
Require local |
|
</IfModule> |
|
<IfModule !mod_authz_host.c> |
|
order deny,allow |
|
deny from all |
|
allow from localhost |
|
</IfModule> |
</Directory> |
</Directory> |
|
|
# ******** 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 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 korte@lite.msu.edu |
PerlSetVar lonSysEMail techsupport@loncapa.org |
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 1430 PerlSetVar lonIncludes /home/http
|
Line 1749 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 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 1439 PerlSetVar lonFontsDir /home/h
|
Line 1759 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:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999:1&netscape:netscape:msie:netscape\/(\d+\.\d+):9999:7&netscape:netscape\/[7-9]:shouldnotmatch:netscape\/(\d+\.\d+):9999:7&amaya:amaya:mozilla:V(\d+\.\d+)\s:1:1&safari:safari:msie:safari\/([\d\.]+):9999:84 |
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 lonTextBrowsers windows\s+ce:lynx |
PerlSetVar lonTextBrowsers windows\s+ce:lynx |
PerlSetVar lonScansDir /home/httpd/scantron |
PerlSetVar lonScansDir /home/httpd/scantron |
Line 1484 PerlSetVar lonCertificateDirectory /home
|
Line 1804 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 |
Line 1525 PerlSetVar SSLEmail certificate@lon-
|
Line 1846 PerlSetVar SSLEmail certificate@lon-
|
#------------------------------------------------------------------------- |
#------------------------------------------------------------------------- |
|
|
|
|
|
# ====================================== Include support for SSL rewrites |
|
|
|
Include conf/loncapa_rewrite.conf |
|
|
|
|
# ====================================== Include machine-specific configuration |
# ====================================== Include machine-specific configuration |