version 1.1, 2002/05/12 19:11:31
|
version 1.22, 2002/10/23 20:55:15
|
Line 12
|
Line 12
|
# |
# |
# LON-CAPA Section (extensions to httpd.conf daemon configuration) |
# LON-CAPA Section (extensions to httpd.conf daemon configuration) |
# |
# |
# ======================================================================== User |
# ================================================================ DocumentRoot |
|
|
DocumentRoot "/home/httpd/html" |
DocumentRoot "/home/httpd/html" |
|
|
Line 37 ExtendedStatus On
|
Line 37 ExtendedStatus On
|
# ===================================================================== Aliases |
# ===================================================================== Aliases |
|
|
Alias /prtspool/ /home/httpd/prtspool/ |
Alias /prtspool/ /home/httpd/prtspool/ |
|
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/" |
|
|
# ================================================================= Directories |
# ================================================================= Directories |
|
|
# ------------------------------------------------------------- Access Handlers |
# ------------------------------------------------------------- Access Handlers |
|
|
<LocationMatch "^/res.*"> |
PerlTransHandler Apache::lontrans |
|
|
|
<LocationMatch "^/+res.*"> |
PerlAccessHandler Apache::lonacc |
PerlAccessHandler Apache::lonacc |
PerlHeaderParserHandler Apache::lonrep |
PerlHeaderParserHandler Apache::lonrep |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
Line 51 ErrorDocument 406 /adm/roles
|
Line 54 ErrorDocument 406 /adm/roles
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/priv.*"> |
<LocationMatch "^/+userfiles.*"> |
|
PerlAccessHandler Apache::lontokacc |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/+uploaded.*"> |
|
PerlAccessHandler Apache::lonuploadedacc |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/+public/.*/syllabus"> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonsyllabus |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/adm/.*/aboutme"> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonaboutme |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/adm/.*/smppg"> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonsimplepage |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/adm/.*/bulletinboard"> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonbulletin |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<LocationMatch "^/+priv.*"> |
PerlAccessHandler Apache::loncacc |
PerlAccessHandler Apache::loncacc |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonconstruct |
PerlHandler Apache::lonconstruct |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/raw.*"> |
<LocationMatch "^/+raw.*"> |
PerlAccessHandler Apache::lonracc |
PerlAccessHandler Apache::lonracc |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/\~.*"> |
<LocationMatch "^/+\~.*"> |
PerlAccessHandler Apache::loncacc |
PerlAccessHandler Apache::loncacc |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
AllowOverride None |
AllowOverride None |
</LocationMatch> |
</LocationMatch> |
Line 121 SetHandler perl-script
|
Line 166 SetHandler perl-script
|
PerlHandler Apache::lonsequence |
PerlHandler Apache::lonsequence |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/res/.*\.meta$> |
<LocationMatch "^/(res|\~).*\.meta$> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonmeta |
PerlHandler Apache::lonmeta |
</LocationMatch> |
</LocationMatch> |
Line 151 PerlAccessHandler Apache::lonacc
|
Line 196 PerlAccessHandler Apache::lonacc
|
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonstatistics |
PerlHandler Apache::lonstatistics |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
|
ErrorDocument 413 /adm/overloaded.txt |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 262 SetHandler perl-script
|
Line 308 SetHandler perl-script
|
PerlHandler Apache::lonpublisher |
PerlHandler Apache::lonpublisher |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 272 SetHandler perl-script
|
Line 318 SetHandler perl-script
|
PerlHandler Apache::lonpubdir |
PerlHandler Apache::lonpubdir |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</LocationMatch> |
</LocationMatch> |
|
|
Line 282 SetHandler perl-script
|
Line 328 SetHandler perl-script
|
PerlHandler Apache::lonpubdir |
PerlHandler Apache::lonpubdir |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/unauthorized> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonunauthorized |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 292 SetHandler perl-script
|
Line 347 SetHandler perl-script
|
PerlHandler Apache::lonretrieve |
PerlHandler Apache::lonretrieve |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 302 SetHandler perl-script
|
Line 357 SetHandler perl-script
|
PerlHandler Apache::loncfile |
PerlHandler Apache::loncfile |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 312 SetHandler perl-script
|
Line 367 SetHandler perl-script
|
PerlHandler Apache::londiff |
PerlHandler Apache::londiff |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 322 SetHandler perl-script
|
Line 377 SetHandler perl-script
|
PerlHandler Apache::lonupload |
PerlHandler Apache::lonupload |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 332 SetHandler perl-script
|
Line 387 SetHandler perl-script
|
PerlHandler Apache::lonspreadsheet |
PerlHandler Apache::lonspreadsheet |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 406 /adm/roles |
ErrorDocument 406 /adm/roles |
|
ErrorDocument 413 /adm/overloaded.txt |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 341 SetHandler perl-script
|
Line 397 SetHandler perl-script
|
PerlHandler Apache::lonspreadsheet |
PerlHandler Apache::lonspreadsheet |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 406 /adm/roles |
ErrorDocument 406 /adm/roles |
|
ErrorDocument 413 /adm/overloaded.txt |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 350 SetHandler perl-script
|
Line 407 SetHandler perl-script
|
PerlHandler Apache::lonspreadsheet |
PerlHandler Apache::lonspreadsheet |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
ErrorDocument 406 /adm/roles |
ErrorDocument 406 /adm/roles |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 413 /adm/overloaded.txt |
</Location> |
|
|
|
<Location /adm/chart> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonchart |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 376 PerlAccessHandler Apache::lonacc
|
Line 425 PerlAccessHandler Apache::lonacc
|
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonprintout |
PerlHandler Apache::lonprintout |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
|
ErrorDocument 413 /adm/overloaded.txt |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 387 ErrorDocument 403 /adm/login
|
Line 437 ErrorDocument 403 /adm/login
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<Location /adm/coursedocs> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::londocs |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/announcements> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonannounce |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/chat> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonchat |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/chatfetch> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonchatfetch |
|
ErrorDocument 413 /adm/overloaded.txt |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<Location /adm/evaluate> |
<Location /adm/evaluate> |
PerlAccessHandler Apache::lonacc |
PerlAccessHandler Apache::lonacc |
SetHandler perl-script |
SetHandler perl-script |
Line 425 PerlAccessHandler Apache::lonacc
|
Line 506 PerlAccessHandler Apache::lonacc
|
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonsearchcat |
PerlHandler Apache::lonsearchcat |
ErrorDocument 403 /adm/login |
ErrorDocument 403 /adm/login |
|
ErrorDocument 413 /adm/overloaded.txt |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
Line 450 SetHandler perl-script
|
Line 532 SetHandler perl-script
|
PerlHandler Apache::lonerrorhandler |
PerlHandler Apache::lonerrorhandler |
</Location> |
</Location> |
|
|
|
<LocationMatch "^/adm/help/.*\.hlp$"> |
|
SetHandler perl-script |
|
PerlHandler Apache::lonhelp |
|
</LocationMatch> |
|
|
# ------------------------------------------------- Backdoor Adm Tests/Programs |
# ------------------------------------------------- Backdoor Adm Tests/Programs |
|
|
<Location /cgi-bin/loncron.pl> |
<Location /cgi-bin/loncron.pl> |
Line 480 AuthUserFile /home/httpd/lonTabs/htpassw
|
Line 567 AuthUserFile /home/httpd/lonTabs/htpassw
|
require user lonadm |
require user lonadm |
</Location> |
</Location> |
|
|
|
<Location /cgi-bin/metadata_harvest.pl> |
|
AuthName "harvest" |
|
AuthType Basic |
|
AuthUserFile /home/httpd/lonTabs/htpasswd |
|
require user reaper |
|
</Location> |
|
|
<Location /adm/test> |
<Location /adm/test> |
AuthName "LON-CAPA Network Administration" |
AuthName "LON-CAPA Network Administration" |
AuthType Basic |
AuthType Basic |
Line 565 PerlSetVar lonDocRoot /home/http
|
Line 659 PerlSetVar lonDocRoot /home/http
|
PerlSetVar lonIncludes /home/httpd/html/res/adm/includes |
PerlSetVar lonIncludes /home/httpd/html/res/adm/includes |
PerlSetVar lonBrowsDet netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:9999&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999&amaya:amaya:mozilla:V(\d+\.\d+)\s:1 |
PerlSetVar lonBrowsDet netscape:mozilla:msie:mozilla\/(\d+\.\d+)\s:9999&explorer:msie:netscape:msie\s(\d+\.\d+)\;:9999&mozilla:mozilla\/[5-9]:msie:mozilla\/(\d+\.\d+)\s:9999&amaya:amaya:mozilla:V(\d+\.\d+)\s:1 |
|
|
|
# ----------------------------------------------------------------------------- |
|
# NOTE: lonSqlAccess key is the password for the MySQL user |
|
# www@localhost. This value must always be "localhostkey". |
|
# The only security risk occurs when somebody logs in as 'www' on your system |
|
# (in which case you have much bigger problems than whether or not they |
|
# can access the non-authoritative loncapa database on your machine). |
|
|
|
PerlSetVar lonSqlAccess localhostkey |
|
|
|
# ----------------------------------------------------------------------------- |
|
|
|
|
|
# ====================================== Include machine-specific configuration |
|
|
|
Include conf/loncapa.conf |
|
|
# ================================================== Initiate mod_perl starting |
# ================================================== Initiate mod_perl starting |
|
|
PerlRequire conf/startup.pl |
PerlRequire conf/startup.pl |