I am facing a persistent issue on a HestiaCP (Nginx Standalone + PHP-FPM) setup when trying to connect the official Bunny.net WordPress plugin.
The Scenario: The plugin attempts to link the account via a GET request containing a very long API Key in the URL parameter.
The Problem:
Default Configuration: Nginx throws an Error 500. The error log shows: upstream sent too big header while reading response header from upstream, request: "GET /wp-admin/admin.php?page=bunnycdn&apiKey=xxxxxxxx..."
Attempted Fix: I tried to increase the FastCGI buffers in the Nginx configuration (both in nginx.conf directly and via custom Web Templates). I added the following directive inside the PHP location block:
Thank you for your help. I backed up my configuration, applied the suggested values ​​to the main /etc/nginx/nginx.conf file, and cleaned up the web templates.
Unfortunately, it’s now throwing a 502 error: “Unable to connect to origin server.”
However, I discovered something interesting: I tried installing the exact same plugin on a different WordPress site hosted on this same server, and it worked perfectly there.
Since they share the same global Nginx configuration and PHP version, I am confused why one triggers the 502 and the other does not