I've got a Moodle installed on IIS. Working via DNAT works fine but as soon as I implement WAF, it breaks all the CSS. Anyone have any thoughts on why this might be?
I found out how to do it but to be honest I though I had tried this when I asked the question. It's very simple.
All you have to do is create two "real servers" (HTTP and HTTPS) and two "virtual servers" (HTTP and HTTPS). You don't need to do anything special with the site path routing, just leave them as root ("/"), they are automatically created.