Skip to main content

NGINX as a reverse proxy: Cannot override cPanel's cpanel-proxy.conf settings

Comments

8 comments

  • cPanelAnthony
    Hello! I will look into this and get back to you.
    0
  • kalexan
    Hello! Any news on this?
    0
  • cPRex Jurassic Moderator
    Hey there - it looks like cPanelAnthony didn't get to this. I've reached out to our webserver team to see what the options are and I'll post a reply once I have more details.
    0
  • cPRex Jurassic Moderator
    I confirmed this behavior on a test system and filed case CPANEL-39876 with our team to see if that is something that can be adjusted in the future. I'll be sure to update this thread once I receive an update, but it's also a good idea to keep an eye on the changelogs at Change Logs | cPanel & WHM Documentation to watch for that case number.
    0
  • cPDan
    Hello @kalexan ! You can accomplish this by putting a `.conf` file in `/etc/nginx/conf.d/includes-optional/cpanel-proxy-vendors/` that does what you want. e.g. `/etc/nginx/conf.d/includes-optional/cpanel-proxy-vendors/my-proxy-overrides-go-here.conf` Also, this sprint we are adding GZIP support to NGINX so in a few weeks that may simplify things for you I added this forum post to the case to update once it gets published so you"ll know about it
    0
  • kalexan
    Solution applied and worked like a charm! Should have better investigated ./includes-optional/cpanel-proxy.conf : it has a declaration that includes .conf files from ./includes-optional/cpanel-proxy-vendors/ folder at the end of it, however this folder did not physically exist, so I created it manually and placed a new .conf file with my overrides there. Thanks @cPDan !
    0
  • cPRex Jurassic Moderator
    Thanks @cPDan !!!
    0
  • cPDan
    Solution applied and worked like a charm! Should have better investigated ./includes-optional/cpanel-proxy.conf : it has a declaration that includes .conf files from ./includes-optional/cpanel-proxy-vendors/ folder at the end of it, however this folder did not physically exist, so I created it manually and placed a new .conf file with my overrides there. Thanks @cPDan !

    Excellent, I"m glad it worked for you! Happy to help
    0

Please sign in to leave a comment.