version 1.6, 2001/02/09 16:35:19
|
version 1.27, 2001/12/06 19:23:42
|
Line 1
|
Line 1
|
## |
## |
## srm.conf -- Apache HTTP server configuration file |
## srm.conf -- Apache HTTP server configuration file |
## |
## |
|
# |
|
# configured for LON-CAPA |
|
# |
|
# $Id$ |
|
|
# With this document, you define the name space that users see of your http |
# With this document, you define the name space that users see of your http |
# server. This file also defines server settings which affect how requests are |
# server. This file also defines server settings which affect how requests are |
Line 289 ErrorDocument 403 /adm/login
|
Line 293 ErrorDocument 403 /adm/login
|
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 404 /adm/notfound.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 406 /adm/unauthorized.html |
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
Options Indexes |
|
AllowOverride None |
AllowOverride None |
</LocationMatch> |
</LocationMatch> |
|
|
Line 310 SetHandler perl-script
|
Line 313 SetHandler perl-script
|
PerlHandler Apache::lonratsrv |
PerlHandler Apache::lonratsrv |
</LocationMatch> |
</LocationMatch> |
|
|
|
<Location /adm/ratparms> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonratparms |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
# --------------------------------------------- Resource Space Content Handlers |
# --------------------------------------------- Resource Space Content Handlers |
|
|
<LocationMatch "^/res/.*/$"> |
<LocationMatch "^/res.*/$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonindexer |
PerlHandler Apache::lonindexer |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/res/.*\.tex$"> |
<LocationMatch "^/(res|\~).*\.tex$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lontex |
PerlHandler Apache::lontex |
</LocationMatch> |
</LocationMatch> |
Line 342 SetHandler perl-script
|
Line 353 SetHandler perl-script
|
PerlHandler Apache::lonxml |
PerlHandler Apache::lonxml |
</LocationMatch> |
</LocationMatch> |
|
|
<LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form)$"> |
<LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$"> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonhomework |
PerlHandler Apache::lonhomework |
</LocationMatch> |
</LocationMatch> |
|
|
|
<LocationMatch "^/adm/wrapper/"> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonwrapper |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
# -------------------------------------------------------------- Admin Programs |
# -------------------------------------------------------------- Admin Programs |
|
|
|
<Location /adm/statistics> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonstatistics |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<Location /adm/roles> |
<Location /adm/roles> |
PerlAccessHandler Apache::lonacc |
PerlAccessHandler Apache::lonacc |
SetHandler perl-script |
SetHandler perl-script |
Line 433 ErrorDocument 406 /adm/roles
|
Line 460 ErrorDocument 406 /adm/roles
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<Location /adm/createcourse> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::loncreatecourse |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/createuser> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::loncreateuser |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 406 /adm/roles |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<Location /adm/publish> |
<Location /adm/publish> |
PerlAccessHandler Apache::lonacc |
PerlAccessHandler Apache::lonacc |
SetHandler perl-script |
SetHandler perl-script |
Line 443 ErrorDocument 406 /adm/unauthorized.
|
Line 488 ErrorDocument 406 /adm/unauthorized.
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<LocationMatch "^/\~.*/$"> |
|
PerlAccessHandler Apache::loncacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonpubdir |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</LocationMatch> |
|
|
|
<Location /adm/pubdir> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonpubdir |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/retrieve> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonretrieve |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/cfile> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::loncfile |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/diff> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::londiff |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/upload> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonupload |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 404 /adm/notfound.html |
|
ErrorDocument 406 /adm/unauthorized.html |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<Location /adm/assesscalc> |
<Location /adm/assesscalc> |
PerlAccessHandler Apache::lonacc |
PerlAccessHandler Apache::lonacc |
SetHandler perl-script |
SetHandler perl-script |
Line 488 ErrorDocument 406 /adm/roles
|
Line 593 ErrorDocument 406 /adm/roles
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
<Location /adm/mydesk> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::lonmydesk |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
|
<Location /adm/printout> |
<Location /adm/printout> |
PerlAccessHandler Apache::lonacc |
PerlAccessHandler Apache::lonacc |
SetHandler perl-script |
SetHandler perl-script |
Line 562 ErrorDocument 406 /adm/roles
|
Line 659 ErrorDocument 406 /adm/roles
|
ErrorDocument 500 /adm/errorhandler |
ErrorDocument 500 /adm/errorhandler |
</Location> |
</Location> |
|
|
|
<Location /adm/groupsort> |
|
PerlAccessHandler Apache::lonacc |
|
SetHandler perl-script |
|
PerlHandler Apache::groupsort |
|
ErrorDocument 403 /adm/login |
|
ErrorDocument 500 /adm/errorhandler |
|
</Location> |
|
|
<Location /adm/errorhandler> |
<Location /adm/errorhandler> |
SetHandler perl-script |
SetHandler perl-script |
PerlHandler Apache::lonerrorhandler |
PerlHandler Apache::lonerrorhandler |
</Location> |
</Location> |
|
|
# --------------------------------------------------------------- Backdoor Test |
# ------------------------------------------------- Backdoor Adm Tests/Programs |
|
|
|
<Location /cgi-bin/loncron.pl> |
|
AuthName "LON Network Synchronization Handler" |
|
AuthType Basic |
|
AuthUserFile /home/httpd/lonTabs/htpasswd |
|
require user lonadm |
|
</Location> |
|
|
|
<Location /cgi-bin/metadata_keywords.pl> |
|
AuthName "LON Keyword Handler" |
|
AuthType Basic |
|
AuthUserFile /home/httpd/lonTabs/htpasswd |
|
require user lonadm |
|
</Location> |
|
|
<Location /adm/test> |
<Location /adm/test> |
AuthName "LON Test Handler" |
AuthName "LON Test Handler" |
Line 578 SetHandler perl-script
|
Line 697 SetHandler perl-script
|
PerlAccessHandler Apache::lonacc |
PerlAccessHandler Apache::lonacc |
PerlHandler Apache::lontest |
PerlHandler Apache::lontest |
</Location> |
</Location> |
|
|
|
# ------------------------------------------------------- Shutting down a child |
|
|
|
PerlChildExitHandler Apache::lonnet::goodbye |
|
|