|I am running webwork-2.2.1 and have encountered the following:
PROBLEM 1: the url /webwork2_course_files doesn't work,
(but /webwork2_files does) and the error message from browser is: the requested URL
/webwork2_course_files was not found on this server.
PROBLEM 2: the hardcopy command doesn't work, even though
a correct pdf file is produced in the right place, and the
error message from browser is: The requested URL
was not found on this server.
(( Shouldn't there be "html" before /tmp ?? ))
SOLUTION: Following the suggestion in
fixes PROBLEM 2, I haven't bothered with PROBLEM 1.
But why is the fix needed????
I include below parts of global.conf and webwork.apache-config.
in the file global.conf:
$webwork_url = "/webwork2";
# Root directory of PG.
$pg_dir = "/usr/local/pg-2.2.1";
# URL and path to htdocs directory.
$webwork_htdocs_url = "/webwork2_files";
$webwork_htdocs_dir = "$webwork_dir/htdocs";
# URL and path to courses directory.
$webwork_courses_url = "/webwork2_course_files";
$webwork_courses_dir = "$webwork_dir/courses";
in the file webwork.apache-config
Set this variable to the path to your WeBWorK installation.
my $webwork_dir = "/usr/local/webwork-2.2.1";
AliasMatch $webwork_courses_url/([^/]*)/(.*) $webwork_courses_dir/$1/html/$2
Allow from All
The fix for PROBLEM 2 is to comment out this last stanza and replace it with aliases for each course:
Alias /webwork2_course_files/MyTestCourse /usr/local/webwork-2.2.1/courses/MyTestCourse/html
Alias /webwork2_course_files/MyOtherTestCourse /opt/webwork2/courses/MyOtherTestCourse/html
<| Post or View Comments |>