Problems Using Nginxcp with SSL-enabled vhosts

mcpacific

Member
May 3, 2015
16
1
53
Los Angeles, CA
cPanel Access Level
Root Administrator
I have been trying to get some CMS sites to use Nginx with SSL connections, but keep getting redirect loops and/or mixed content warnings.

Inside the server block of the default vhost domain configuration, I added:

listen XXX.XXX.XXX.XXX:443 http2 ssl;
ssl_certificate /PATH/certs/bundle.crt;
ssl_certificate_key /PATH/keys/bundle.key;

Regular HTML works just fine with an https connection, but when accessing WordPress (or Magento for a different user), it seems to be problematic and doesn't work.

Anyone have any insight or suggestions? I've posted on the nginxcp forum but no reply there yet.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello,

I suggest consulting with the developer of the Nginx plugin you are using to determine how to best add that custom entry. Or, try disabling Nginx temporarily to see if you can reproduce the issue with the standard Apache installation.

Thank you.