Skip to main content

WHM subdomain with proxy, mixed content problem

Comments

7 comments

  • cPanelLauren
    Hi @Nicola Urbinati Do the pages load with mixed content over apache alone or only when using nginx to load https traffic?
    0
  • Nicola Urbinati
    Hi, I disabled Engintron and the content is correctly loaded in HTTPS. Re-abled Engintron (as a particular setting, I am offloading all HTTPS traffic to Nginx, as per the Engintron wiki walkthrough), and those pages are loading mixed content again. Thing is: only those pages have this behaviour, so knowing why this happens (how are those different from other pages) could help me managing them through Engintron. Thank you, Nicola.
    0
  • LucasRolff
    I'd advise you to wait for an update on the issue you've created on the Enginetron github page about it, meanwhile use example.com/whm (:2087) to access WHM, this should bypass Enginetron. The issue in this very specific case, is that it's very "easy" to get wrong because you have nginx doing a proxy to Apache, and then Apache has to do a proxy to cpanelsrvd to load up WHM - I can see that there might be translation issues of URL's due to the double proxy part - however. it should really cause WHM to not load at all if that was the case. I cannot see why it proxies to port 8080 when it should, in reality, be requesting things over port 8443.
    0
  • Nicola Urbinati
    Hi, Thank you for your answer. It's proxing to 8080 beacause actually I'm using the "Offload HTTPS to Nginx" walktrhouh on the Engintron Wiki, so that the SSL thing will be done only once by Nginx, and the load on the server will be lighter. Let's see if the guys on Engintron can help me some way.
    0
  • cPanelLauren
    HI @Nicola Urbinati I've had a bit of time to contemplate this and I really can't see a way that these are called differently that would result in this. I would assume if there was an issue with the request it would come over http on apache as well which leads me to believe it's something specific to the way it's being requested through nginx. If you talk to the folks at engintron and they're able to get you an answer please let us know here, I'd wager it would help someone else in the long run. Thanks!
    0
  • LucasRolff
    I could also recommend looking into LiteSpeed, it's even "officially supported" by cPanel and doesn't cause any issues - additionally, it does a better job at solving what you're trying to solve by using a set of (rather unsupported) software together.
    0
  • Anoop P Alias
    I believe the issue is with how the whm subdomain configuration is handled here.
    0

Please sign in to leave a comment.