A couple of observations:
- The serving of the WeBWorK pages themselves is not the problem. If you fetch a page like http://ec2-3-133-102-106.us-east-2.compute.amazonaws.com/webwork2/myTestCourse/ using a tool such as wget or curl it is almost instant, so the problem isn't with WeBWorK processing pages.
- Looking at the Browser Console in Firefox (under "Web Developer"), it shows the following:
Loading failed for the <script> with source “http://aws.apizer.org:8080/webwork2_files/mathjax/MathJax.js?config=TeX-MML-AM_HTMLorMML-full”.
It looks like your server is configured to get its javascript from aws.apizer.org, which appears to not be responding. My guess is that the page tries to load this javascript, and then times out. Once that dependency times out then it loads the rest of the page.
Most likely in your configuration you need to find the mention of aws.apizer.org, and change it to the name of your server. Since it is coded for port 8080 it is likely expecting lighttpd to be set up to serve static content, so if you set it to port 8080 then you will need to make sure that you have lighttpd running and configured properly.