Thanks for your help. I figured it out and it was something else. In site.conf I had changed the line
$webwork_url = '/webwork2'
to
$webwork_url = ""
And then forgot that I had changed it. I started installation pretty much from scratch and left it like that and everything worked fine. Oops.
Thanks for helping, though.
Installation
Problem with Location directive
This forum has a limit to the number of forum postings you can make in a given time period - this is currently set at 5 posting(s) in 1 day