am still unable to generate a hardcopy of problem sets. Okay, actually,
the hardcopy is generated, but the problem lies in the AliasMatch
command in webwork.apache-config.
I know this has come up before, specifically in:
Right now, we have the line:
AliasMatch $webwork_courses_url/([^/]*)/(.*) $webwork_courses_dir/$1/html/$2
Which, from what I can tell, is correct. But, I am getting funny errors
similar to what was in the previous posting on this topic:
[Fri Aug 20 17:21:29 2004] [error] [client 126.96.36.199] File does not exist: /opt/webwork2/courses//html/
I have tried playing with the AliasMatch command, it is seems the
backreferences are just not working correctly. For example, if I change
the config file to:
AliasMatch $webwork_courses_url/([^/]*)/(.*) $webwork_courses_dir/Testing/html/tmp/hardcopy/Testing.admin.set4.pdf
then everything works alright (except of course this is the only file that will be delivered!).
If I change it to:
AliasMatch $webwork_courses_url/(Testing)/(.*) $webwork_courses_dir/$1/html/tmp/hardcopy/Testing.admin.set4.pdf
(Note: there is a slash before the $1, but I don't know why it isn't
being displayed. In any case, I have tried it with and without the
slashes in just about every combination conceivable.)
[Fri Aug 20 17:24:33 2004] [error] [client 188.8.131.52] File does not exist: /opt/webwork2/courses//html/tmp/hardcopy/Testing.admin.set4.pdf
If I look in the server access log, I get something funny too:
184.108.40.206 - - [20/Aug/2004:17:24:33 -0500] "GET
HTTP/1.1" 404 345
In other words, it looks like in the server error log, it is missing
the course name (Testing), but in the server access log, it is missing
I have tried a bunch of other permutations of these changes, and nothing is getting me anything that makes any sense to me.
Thanks for any help or suggestions that can be offered.
<| Post or View Comments |>