Return to loncapa_apache.conf CVS log | Up to [LON-CAPA] / loncom |
Lonchart is now part of lonstatistics. When the CHRT button is pressed on the remote control it will take you to the student assessment page. In the next commit or two, the student assessment page and lonchart will gradually merge, or I will make chart its own report. I added another perl module, lonhtmlcommon which will contain a series of functions that create controls and data layouts for various different pieces of information. This is just a fledgling module. The biggest feature of this commit is that the downloading of student course data has changed slightly. Now, the classlist will contain all students, but will only display the appropriate ones. Different reports require different amounts of data, so some may only download student course data when selected and some will download it all at once. The downloading will first grab the time stamp on the course.db file for the student and compare it will the cached timestamp for that file. It will only do a dump if the data is not yet cached or the timestamp is newer than the one stored. Only when the data is processed is the timestamp update, not when downloaded. The Download/Process duo of function work hand in hand. Calling both will be typical even if there was nothing actually downloaded. The is now a new form, which is a class list with different information. This list also contain the timestamp for each student, when their course data was downloaded last. Having this page is both informational, and hopefully will mean that it is not necessary for all the other pages, at least as defaults. Each report now has a common header. There is currently some white space, but it can be filled. The header has a refresh button, update all student data button, a selection of forms and a selection of student status. The update all student data button will download all students (active and expired) for the given course. This allows someone to come to the entry page( class list) update all the students while they do stuff and come back. The two selection boxes are special in that they will update the document when changed. The onchange attribute was tested on mac, linux and pc, for the different browsers. The only noticed difference was netscape 4.7 executes the javascript if it you select the same thing, where all others do not. Also, the same browser causes the first button in the form to be pressed when the document.form.submit() javascript is executed for the onchange of the selection box. There was other cosmetic changes, but were minor.
## ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file ## ## $Id: loncapa_apache.conf,v 1.9 2002/07/22 20:35:05 stredwic Exp $ ## ## 1/11/2002 - Scott Harrison ## 2/19/2002 - Scott Harrison ## 2/28/2002 - Scott Harrison ## 3/2/2002 - Scott Harrison ## 5/12/2002 - Scott Harrison # # LON-CAPA Section (extensions to httpd.conf daemon configuration) # # ================================================================ DocumentRoot DocumentRoot "/home/httpd/html" # ======================================================================== User User www Group www # ======================================================= Shared Object Modules LoadModule perl_module modules/libperl.so AddModule mod_perl.c # =============================================================== Miscellaneous ServerAdmin korte@lite.msu.edu ExtendedStatus On # # LON-CAPA Section (extensions to srm.conf name space servicing) # # ===================================================================== Aliases Alias /prtspool/ /home/httpd/prtspool/ ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/" # ================================================================= Directories # ------------------------------------------------------------- Access Handlers <LocationMatch "^/res.*"> PerlAccessHandler Apache::lonacc PerlHeaderParserHandler Apache::lonrep ErrorDocument 403 /adm/login ErrorDocument 404 /adm/notfound.html ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </LocationMatch> <LocationMatch "^/priv.*"> PerlAccessHandler Apache::loncacc SetHandler perl-script PerlHandler Apache::lonconstruct ErrorDocument 403 /adm/login ErrorDocument 404 /adm/notfound.html ErrorDocument 406 /adm/unauthorized.html ErrorDocument 500 /adm/errorhandler </LocationMatch> <LocationMatch "^/raw.*"> PerlAccessHandler Apache::lonracc </LocationMatch> <LocationMatch "^/\~.*"> PerlAccessHandler Apache::loncacc ErrorDocument 403 /adm/login ErrorDocument 404 /adm/notfound.html ErrorDocument 406 /adm/unauthorized.html ErrorDocument 500 /adm/errorhandler AllowOverride None </LocationMatch> # ------------------------------------------------------------------------- RAT <LocationMatch "^/\~.*\.sequence$"> SetHandler perl-script PerlHandler Apache::lonratedt </LocationMatch> <LocationMatch "^/\~.*\.page$"> SetHandler perl-script PerlHandler Apache::lonratedt </LocationMatch> <LocationMatch "^/\~.*\/ratserver$"> SetHandler perl-script PerlHandler Apache::lonratsrv </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 <LocationMatch "^/res.*/$"> SetHandler perl-script PerlHandler Apache::lonindexer </LocationMatch> <LocationMatch "^/(res|\~).*\.tex$"> SetHandler perl-script PerlHandler Apache::lontex </LocationMatch> <LocationMatch "^/res/.*\.page$> SetHandler perl-script PerlHandler Apache::lonpage </LocationMatch> <LocationMatch "^/res/.*\.sequence$> SetHandler perl-script PerlHandler Apache::lonsequence </LocationMatch> <LocationMatch "^/(res|\~).*\.meta$> SetHandler perl-script PerlHandler Apache::lonmeta </LocationMatch> <LocationMatch "^/(res|\~).*\.(xml|html|htm|xhtml|xhtm)$"> SetHandler perl-script PerlHandler Apache::lonxml </LocationMatch> <LocationMatch "^/(res|\~).*\.(problem|exam|quiz|assess|survey|form|library)$"> SetHandler perl-script PerlHandler Apache::lonhomework </LocationMatch> <LocationMatch "^/adm/wrapper/"> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonwrapper ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </LocationMatch> # -------------------------------------------------------------- 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> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonroles ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/login> SetHandler perl-script PerlHandler Apache::lonlogin </Location> <Location /adm/logout> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonlogout ErrorDocument 403 /adm/login </Location> <Location /adm/authenticate> SetHandler perl-script PerlHandler Apache::lonauth </Location> <Location /adm/annotations> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::admannotations ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/bookmarks> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::admbookmarks ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/flip> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonpageflip ErrorDocument 406 /adm/roles ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/ambiguous> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonambiguous ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/email> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonmsg ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/parmset> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonparmset ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/grades> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::grades ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </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> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonpublisher ErrorDocument 403 /adm/login ErrorDocument 404 /adm/notfound.html ErrorDocument 406 /adm/unauthorized.html ErrorDocument 500 /adm/errorhandler </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> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonspreadsheet ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/studentcalc> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonspreadsheet ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/classcalc> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonspreadsheet ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/dropadd> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::londropadd ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/printout> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonprintout ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/feedback> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonfeedback ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/evaluate> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonevaluate ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/preferences> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonpreferences ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/assignments> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonassignments ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/communicate> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::loncommunicate ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/searchcat> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonsearchcat ErrorDocument 403 /adm/login ErrorDocument 500 /adm/errorhandler </Location> <Location /adm/navmaps> PerlAccessHandler Apache::lonacc SetHandler perl-script PerlHandler Apache::lonnavmaps ErrorDocument 403 /adm/login ErrorDocument 406 /adm/roles ErrorDocument 500 /adm/errorhandler </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> SetHandler perl-script PerlHandler Apache::lonerrorhandler </Location> <LocationMatch "^/adm/help/.*\.hlp$"> SetHandler perl-script PerlHandler Apache::lonhelp </LocationMatch> # ------------------------------------------------- Backdoor Adm Tests/Programs <Location /cgi-bin/loncron.pl> AuthName "LON-CAPA Network Administration" AuthType Basic AuthUserFile /home/httpd/lonTabs/htpasswd require user lonadm </Location> <Location /cgi-bin/lonversions.pl> AuthName "LON-CAPA Network Administration" AuthType Basic AuthUserFile /home/httpd/lonTabs/htpasswd require user lonadm </Location> <Location /cgi-bin/clusterstatus.pl> AuthName "LON-CAPA Network Administration" AuthType Basic AuthUserFile /home/httpd/lonTabs/htpasswd require user lonadm </Location> <Location /cgi-bin/metadata_keywords.pl> AuthName "LON-CAPA Network Administration" AuthType Basic AuthUserFile /home/httpd/lonTabs/htpasswd require user lonadm </Location> <Location /adm/test> AuthName "LON-CAPA Network Administration" AuthType Basic AuthUserFile /home/httpd/lonTabs/htpasswd require user lonadm SetHandler perl-script PerlAccessHandler Apache::lonacc PerlHandler Apache::lontest </Location> # ------------------------------------------------------- Shutting down a child PerlChildExitHandler Apache::lonnet::goodbye # # LON-CAPA Section (extensions to access.conf permission configuration) # # =========================================================== Directory Options # Start out with "no" <Directory /> Options None AllowOverride None </Directory> # Yes to symbolic links and server-side includes <Directory /home/httpd/html> Options Includes FollowSymLinks AllowOverride None order allow,deny allow from all </Directory> # If it is in cgi-bin, then it can be executed as a CGI script. <Directory /home/httpd/cgi-bin> AllowOverride None Options ExecCGI </Directory> # ============================================================= Access Handlers # ------------------------------------------------- Allow server-status reports <Location /server-status> SetHandler server-status AuthName "LON-CAPA Network Administration" AuthType Basic AuthUserFile /home/httpd/lonTabs/htpasswd require user lonadm </Location> # ------------------------ Allow LON-CAPA "low-level" connection status reports <Location /lon-status> AuthName "LON-CAPA Network Administration" AuthType Basic AuthUserFile /home/httpd/lonTabs/htpasswd require user lonadm </Location> # ------------------- Allow access to local system documentation from localhost Alias /doc /usr/doc <Directory /usr/doc> order deny,allow deny from all allow from localhost Options Indexes FollowSymLinks </Directory> # ******** THESE "SHOULD" NEVER BE ALTERED BY THE USER ************************ # ====================================== Internal Settings / Perl Configuration PerlSetVar lonIDsDir /home/httpd/lonIDs PerlSetVar lonTabDir /home/httpd/lonTabs PerlSetVar lonUsersDir /home/httpd/lonUsers PerlSetVar lonIconsURL /adm/lonIcons PerlSetVar londPort 5663 PerlSetVar lonSysEMail korte@lite.msu.edu PerlSetVar lonDaemons /home/httpd/perl PerlSetVar lonSockDir /home/httpd/sockets PerlSetVar lonDocRoot /home/httpd/html 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 # ----------------------------------------------------------------------------- # 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 PerlRequire conf/startup.pl PerlFreshRestart On