I have more-or-less completed an install of WeBWorK on a server running Ubuntu 20.04 by following these directions:
https://webwork.maa.org/wiki/Installation_Manual_for_2.15_on_Ubuntu_20.04_Desktop
I was able to do the "Option A" section of the install, and I had already set up https on the server, so WW runs over https. But I cannot successfully get through the Option B installation instructions here:
https://webwork.maa.org/wiki/Installation_Manual_for_2.15_on_Ubuntu_20.04_Desktop#Implement_Optional_B_.28lighttpd.29
In the instructions, the default is to use 'localhost' for the items that will be served by lighttpd, but when I use 'localhost' it fails entirely (my web browsers cannot resolve the relevant http addresses). After changing 'localhost' to my actual server name, images are served correctly by lighttpd, but MathJax will not render. Here is the relevant addition to the localOverrides.conf file:
# Location of MathJax script, used for the MathJax display mode. $webworkURLs{MathJax} = 'http://myrealservername.edu:8080/webwork2_files/mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML-full';This fails in Chrome, Safari, and Firefox. Chrome tells me the problem is that I'm trying to run an insecure script via http on a page that is otherwise served via https. Now, if I instead do this:
$webworkURLs{MathJax} = 'https://myrealservername.edu/webwork2_files/mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML-full';
then it works fine, but this seems to (partially) defeat the purpose of doing Option B at all.
(1) Is my fix reasonable, or is it indeed pointless since then lighttpd won't be serving the MathJax?
(2) Is there another way to fix the problem so that I can indeed serve MathJax via http:// and lighttpd as the install directions suggest?
I want to avoid figuring out how to serve the lighttpd pages over https as well ... I feel like what *should* work is I should be able to do the original 'localhost' option, but I can't figure out why that's failing.
Has anyone else run into this issue?