From: Mike G. v. a. <we...@ma...> - 2008-08-06 15:54:21
|
Log Message: ----------- Insert commented out section describing how to enable the show-source.cgi script. This enables you to place a button illustrating the source code in any problem provided that show-source.cgi has been copied into the course/html directory for that course. Tags: ---- rel-2-4-patches Modified Files: -------------- webwork2/conf: webwork.apache2-config.dist Revision Data ------------- Index: webwork.apache2-config.dist =================================================================== RCS file: /webwork/cvs/system/webwork2/conf/webwork.apache2-config.dist,v retrieving revision 1.6.2.3 retrieving revision 1.6.2.3.2.1 diff -Lconf/webwork.apache2-config.dist -Lconf/webwork.apache2-config.dist -u -r1.6.2.3 -r1.6.2.3.2.1 --- conf/webwork.apache2-config.dist +++ conf/webwork.apache2-config.dist @@ -27,6 +27,18 @@ # FollowSymlinksOption from working when specified # in a <Perl> section. See below for workaround. + +# Uncomment the ScriptAliasMatch to allow access to show-source.cgi +# This allows the "show source" button to work for demonstration "courses" +# See for example Davide Cervone's Knoxville lectures on math objects +# It requires that a show-source.cgi script be customized and placed in +# the myCourse/html directory of the course +# The "show source" button is most useful for webwork "courses" used to train new authors +# It is not desirable to expose the code of regular homework questions to students + +# ScriptAliasMatch /webwork2_course_files/([^/]*)/show-source.cgi/(.*) /opt/webwork/courses/$1/html/show-source.cgi/$2 + + PerlModule mod_perl2 <Perl> |