WeBWorK Main Forum

Where is Mathjax.js ?

Re: Where is Mathjax.js ?

by Thomas Mullaly -
Number of replies: 1
Yes, it was. I added the valid certificate to the web proxy and configured the webwork server $server_root_url to be https://webwork2.math.umb.edu

I'm getting the same 183 setmaker.js: /webwork2/instructorXMLHandler: Forbidden error

On the webwork server here is the access and error.log:

==> /var/log/apache2/access.log <==
158.121.106.227 - - [27/Oct/2021:09:11:10 -0400] "GET /webwork2/f21-Math_242-section_03/instructor/setmaker/?effectiveUser=tom.mullaly HTTP/1.1" 200 5427 "https://webwork2.math.umb.edu" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.30"
158.121.106.227 - - [27/Oct/2021:09:11:10 -0400] "GET /webwork2_files/node_modules/iframe-resizer/js/iframeResizer.map HTTP/1.1" 200 19375 "https://webwork2.math.umb.edu" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.30"

==> /var/log/apache2/error.log <==
There were a lot of errors
Errors:
404 Not Found at /opt/webwork/webwork2/lib/WebworkClient.pm line 301.

End Errors
xmlrpcCall to searchLib returned no result for
[Wed Oct 27 09:11:13.426988 2021] [perl:error] [pid 182962] [client 158.121.106.227:53886] [5cb15bc7-d42b-5be7-bb5c-ee249e546918::5c597db1-3727-11ec-ab69-d5d9f98114fc] [/webwork2/instructorXMLHandler] {"Time":"Wed Oct 27 09:11:13 2021","Error record identifier":"5cb15bc7-d42b-5be7-bb5c-ee249e546918::5c597db1-3727-11ec-ab69-d5d9f98114fc","Warnings":[],"HTTP Headers":{"Accept":"*/*","Accept-Language":"en-US,en;q=0.9","sec-ch-ua":"Microsoft Edge;v=95, Chromium;v=95, ;Not A Brand;v=99","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.30","Cookie":"WeBWorKCourseAuthen.f21-Math_242-section_03=tom.mullaly%09wsiJL85VdlybXC0iurvmPgG6ZMAmPdyY%091635340270","Host":"webwork2.math.umb.edu","sec-ch-ua-platform":"\\"Windows\\"","Origin":"https://webwork2.math.umb.edu","Sec-Fetch-Dest":"empty","X-Real-IP":"158.121.33.14","Referer":"https://webwork2.math.umb.edu","Sec-Fetch-Site":"same-origin","Sec-Fetch-Mode":"cors","Accept-Encoding":"gzip, deflate, br","sec-ch-ua-mobile":"?0","Connection":"close","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8","Content-Length":"240","X-Requested-With":"XMLHttpRequest"},"Method":"POST","URI":"/webwork2/instructorXMLHandler"} xmlrpcCall to searchLib returned no result for \n * in WeBWorK::ContentGenerator::instructorXMLHandler::content called at line 232 of /opt/webwork/webwork2/lib/WeBWorK/ContentGenerator.pm\n * in WeBWorK::ContentGenerator::go called at line 386 of /opt/webwork/webwork2/lib/WeBWorK.pm, referer: https://webwork2.math.umb.edu

==> /var/log/apache2/access.log <==
158.121.106.227 - - [27/Oct/2021:09:11:13 -0400] "POST /webwork2/instructorXMLHandler HTTP/1.1" 403 5002 "https://webwork2.math.umb.edu" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36 Edg/95.0.1020.30"
In reply to Thomas Mullaly

Re: Where is Mathjax.js ?

by Thomas Mullaly -
I got it working.

I added the real certificate to both the proxy and the webwork server.
webwork2.math.umb.edu is a cname that points to the proxy so I added a local webwork2.math.umb.edu on the webwork server in /etc/hosts so it can call itself without going through the proxy, using the routable address (not localhost, although that might work.)
I changed $server_root_url in site.conf to be https://webwork2.math.umb.edu

Voila