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
/webwork2_course_files/MyTestCourse/tmp/hardcopy/MyTestCourse.ecox.SetNo1.pdf
was not found on this server.
(( Shouldn't there be "html" before /tmp ?? ))
SOLUTION: Following the suggestion in
http://webhost.math.rochester.edu/webworkdocs/discuss/msgReader$2592
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.
Ted Cox
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
<Directory $webwork_courses_dir/*/html>
Order Allow,Deny
Allow from All
Options FollowSymLinks
AllowOverride None
</Directory>
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
<Directory /usr/local//webwork-2.2.1/courses/*/html>
Options FollowSymLinks
AllowOverride None
</Directory>
<| Post or View Comments |>
|