--- loncom/loncapa_apache.conf 2003/07/07 07:32:16 1.55
+++ loncom/loncapa_apache.conf 2004/05/31 20:24:11 1.81
@@ -1,7 +1,7 @@
##
## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
##
-## $Id: loncapa_apache.conf,v 1.55 2003/07/07 07:32:16 www Exp $
+## $Id: loncapa_apache.conf,v 1.81 2004/05/31 20:24:11 albertel Exp $
##
#
@@ -23,6 +23,9 @@ LoadModule perl_module modules/lib
AddModule mod_perl.c
+
+PerlSetVar MODPERL2 1
+
# =============================================================== Miscellaneous
ServerAdmin korte@lite.msu.edu
@@ -40,6 +43,9 @@ ScriptAlias /cgi-bin/ "/home/httpd/cgi-b
# ------------------------------------------------------------- Access Handlers
PerlTransHandler Apache::lontrans
+
+PerlCleanupHandler Apache::lonnet::cleanenv
+
#PerlWarn On
@@ -51,16 +57,38 @@ ErrorDocument 406 /adm/roles
ErrorDocument 500 /adm/errorhandler
+
+PerlAccessHandler Apache::lonenc
+ErrorDocument 403 /adm/login
+ErrorDocument 404 /adm/notfound.html
+ErrorDocument 406 /adm/roles
+ErrorDocument 500 /adm/errorhandler
+
+
PerlAccessHandler Apache::lontokacc
+PerlCleanupHandler Apache::lontokacc::removefile
-PerlAccessHandler Apache::lonuploadedacc
+PerlAccessHandler Apache::lonacc
+PerlHeaderParserHandler Apache::lonuploadrep
+ErrorDocument 403 /adm/login
ErrorDocument 404 /adm/notfound.html
+ErrorDocument 406 /adm/roles
ErrorDocument 500 /adm/errorhandler
+
+SetHandler perl-script
+PerlHandler Apache::lonpage
+
+
+
+SetHandler perl-script
+PerlHandler Apache::lonsequence
+
+
PerlAccessHandler Apache::lonacc
SetHandler perl-script
@@ -172,43 +200,52 @@ ErrorDocument 500 /adm/errorhandler
# --------------------------------------------- Resource Space Content Handlers
-
+
SetHandler perl-script
PerlHandler Apache::lonindexer
PerlCleanupHandler Apache::lonindexer::cleanup
-
+
SetHandler perl-script
PerlHandler Apache::lontex
-
+
SetHandler perl-script
PerlHandler Apache::lonpage
-
+
SetHandler perl-script
PerlHandler Apache::lonsequence
-
+
SetHandler perl-script
PerlHandler Apache::lonmeta
-
+
+SetHandler perl-script
+PerlAccessHandler Apache::lonacc
+PerlHandler Apache::lonmeta
+
+
+
+
+
SetHandler perl-script
PerlHandler Apache::lonrights
-
+
SetHandler perl-script
+PerlHandler Apache::londatecheck
PerlHandler Apache::lonxml
-
+
SetHandler perl-script
PerlHandler Apache::lonhomework
@@ -221,6 +258,14 @@ ErrorDocument 403 /adm/login
ErrorDocument 500 /adm/errorhandler
+
+PerlAccessHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::lonlocal
+ErrorDocument 403 /adm/login
+ErrorDocument 500 /adm/errorhandler
+
+
# -------------------------------------------------------------- Admin Programs
@@ -231,6 +276,14 @@ ErrorDocument 403 /adm/login
ErrorDocument 500 /adm/errorhandler
+
+PerlAccessHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::imagechoice
+ErrorDocument 403 /adm/login
+ErrorDocument 500 /adm/errorhandler
+
+
PerlAccessHandler Apache::lonacc
SetHandler perl-script
@@ -280,6 +333,14 @@ ErrorDocument 403 /adm/login
ErrorDocument 500 /adm/errorhandler
+
+PerlAccessHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::lonpickcode
+ErrorDocument 403 /adm/login
+ErrorDocument 500 /adm/errorhandler
+
+
SetHandler perl-script
PerlHandler Apache::lonlogin
@@ -376,6 +437,15 @@ ErrorDocument 406 /adm/roles
ErrorDocument 500 /adm/errorhandler
+
+PerlAccessHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::lonmodifycourse
+ErrorDocument 403 /adm/login
+ErrorDocument 406 /adm/roles
+ErrorDocument 500 /adm/errorhandler
+
+
PerlAccessHandler Apache::lonacc
SetHandler perl-script
@@ -395,7 +465,7 @@ ErrorDocument 406 /adm/unauthorized
ErrorDocument 500 /adm/errorhandler
-
+
PerlAccessHandler Apache::loncacc
SetHandler perl-script
PerlHandler Apache::lonpubdir
@@ -464,6 +534,26 @@ ErrorDocument 406 /adm/unauthorized
ErrorDocument 500 /adm/errorhandler
+
+PerlAccessHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::imsimport
+ErrorDocument 403 /adm/login
+ErrorDocument 404 /adm/notfound.html
+ErrorDocument 406 /adm/unauthorized
+ErrorDocument 500 /adm/errorhandler
+
+
+
+PerlAccessHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::testbankimport
+ErrorDocument 403 /adm/login
+ErrorDocument 404 /adm/notfound.html
+ErrorDocument 406 /adm/unauthorized
+ErrorDocument 500 /adm/errorhandler
+
+
PerlAccessHandler Apache::lonacc
SetHandler perl-script
@@ -503,6 +593,15 @@ ErrorDocument 406 /adm/roles
ErrorDocument 500 /adm/errorhandler
+
+PerlAccessHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::lonpopulate
+ErrorDocument 403 /adm/login
+ErrorDocument 406 /adm/roles
+ErrorDocument 500 /adm/errorhandler
+
+
PerlAccessHandler Apache::lonacc
SetHandler perl-script
@@ -532,12 +631,20 @@ ErrorDocument 500 /adm/errorhandler
PerlAccessHandler Apache::lonacc
SetHandler perl-script
-PerlCleanupHandler Apache::londocs::untiehash
PerlHandler Apache::londocs
+ PerlCleanupHandler Apache::londocs::untiehash
ErrorDocument 403 /adm/login
ErrorDocument 500 /adm/errorhandler
+
+PerlAccessHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::imsimportdocs
+ErrorDocument 403 /adm/login
+ErrorDocument 500 /adm/errorhandler
+
+
PerlAccessHandler Apache::lonacc
SetHandler perl-script
@@ -637,6 +744,7 @@ PerlHandler Apache::lonerrorhandler
+PerlAccessHandler Apache::lonacc
SetHandler perl-script
PerlHandler Apache::lonhelp
@@ -685,6 +793,20 @@ AuthUserFile /home/httpd/lonTabs/htpassw
require user reaper
+
+AuthName "Offline"
+AuthType Basic
+AuthUserFile /home/httpd/lonTabs/htpasswd
+require user offline
+
+
+
+AuthName "Offline"
+AuthType Basic
+AuthUserFile /home/httpd/lonTabs/htpasswd
+require user offline
+
+
AuthName "LON-CAPA Network Administration"
AuthType Basic
@@ -758,6 +880,7 @@ Options Indexes FollowSymLinks
# ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************
# ====================================== Internal Settings / Perl Configuration
+PerlSetVar lonVersion ''
PerlSetVar lonIDsDir /home/httpd/lonIDs
PerlSetVar lonTabDir /home/httpd/lonTabs
PerlSetVar lonUsersDir /home/httpd/lonUsers
@@ -772,6 +895,8 @@ PerlSetVar lonBrowsDet netscape:m
PerlSetVar lonTextBrowsers opera:windows\s+ce:lynx
PerlSetVar lonScansDir /home/httpd/scantron
PerlSetVar lonScriptTimeout 10
+PerlSetVar BugzillaHost http://bugs.lon-capa.org/
+PerlSetVar FAQHost http://help.lon-capa.org/
# -----------------------------------------------------------------------------
# NOTE: lonSqlAccess key is the password for the MySQL user
# www@localhost. This value must always be "localhostkey".
@@ -787,11 +912,60 @@ PerlSetVar lonSqlAccess localhos
PerlSetVar lonhttpdPort 8080
+# Parameters used by secure lond/lonc
+
+#
+# Secure lond/lonc require ssl certificate and private
+# key files to function correctly. The certificate
+# files need not be terribly secure, but the private key files
+# should be set up so that only www (the lonc/lond effective user)
+# can read them.
+#
+# The definition below is the full path to the directory that
+# contains the certificate and key files:
+#
+PerlSetVar lonCertificateDirectory /home/httpd/lonCerts
+
+#
+# Secure lond/lonc require two certificates and a private host key.
+# The certificates required are that of the lonCAPA certificate authority
+# and the certificate that authority issued to this host.
+# lonnetCertificateAuthority is the name of the file that contains the
+# lonCAPA certificate authority's certificate.
+# lonnetCertificate is the name of the file that contains the certificate
+# issued to the host by the certificate authority.
+# Both of these variables are names of files assumed to be in
+# lonCertificateDirectory:
+
+PerlSetVar lonnetCertificateAuthority loncapaCA.pem
+PerlSetVar lonnetCertificate lonhostcert.pem
+
+#
+# To generate the request for a certificate, and to negotiate the
+# initial ssl connection, the host requires a private key. This key
+# is created at lonCAPA install time. Did we mention above that it
+# should be set so that only www can read it? The variale below
+# is the name of the file relative to lonnetCertificateDirectory
+# that has the host's private key. Did we remember to tell you to
+# keep the permissions on that file set to rw------- (0600)?
+#
+
+PerlSetVar lonnetPrivateKey lonKey.pem
+
+# Did we mention that the file described above must have
+# permissions really locked down so that it can't be stolen?
+
+
+
# ====================================== Include machine-specific configuration
Include conf/loncapa.conf
+# ================================================= Include local configuration
+
+Include conf/loncapa_apache_local*.conf
+
# ================================================== Initiate mod_perl starting
PerlRequire conf/startup.pl