[GH-ISSUE #438] 502 Bad Gateway due to proxy buffer size #369

Closed
opened 2026-02-26 06:32:34 +03:00 by kerem · 4 comments
Owner

Originally created by @damianog on GitHub (May 30, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/438

I am using jc21/nginx-proxy-manager:latest 2.3

During POST action of an asp.net core Blazor application I get 502 error

from /data/logs/error.log I discovered the cause:

...upstream sent too big header while reading response header from upstream...

I found the solution by configuring the Custom Nginx Configuration on "Advanced" tab with the following parameters:

  proxy_buffer_size   128k;
  proxy_buffers   4 256k;
  proxy_busy_buffers_size   256k; 

as explained on http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffer_size

Please consider to add these parameters by default or make them configurable by panel settings.

Originally created by @damianog on GitHub (May 30, 2020). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/438 I am using `jc21/nginx-proxy-manager:latest` 2.3 During POST action of an asp.net core Blazor application I get 502 error from /data/logs/error.log I discovered the cause: `...upstream sent too big header while reading response header from upstream...` I found the solution by configuring the Custom Nginx Configuration on "Advanced" tab with the following parameters: ``` proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; ``` as explained on http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffer_size Please consider to add these parameters by default or make them configurable by panel settings.
kerem 2026-02-26 06:32:34 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@MartinKuhl commented on GitHub (Mar 3, 2021):

@damianog could you post your full entry in the Advanced tab?

<!-- gh-comment-id:789592831 --> @MartinKuhl commented on GitHub (Mar 3, 2021): @damianog could you post your full entry in the Advanced tab?
Author
Owner

@damianog commented on GitHub (Mar 3, 2021):

Hi @MartinKuhl,

cut and paste exactly as I wrote

image

<!-- gh-comment-id:789967792 --> @damianog commented on GitHub (Mar 3, 2021): Hi @MartinKuhl, cut and paste exactly as I wrote ![image](https://user-images.githubusercontent.com/2786682/109854801-c3912380-7c57-11eb-8f28-79fbf87246b9.png)
Author
Owner

@MartinKuhl commented on GitHub (Mar 4, 2021):

thanks a lot, that fixes my issue too!

<!-- gh-comment-id:790385105 --> @MartinKuhl commented on GitHub (Mar 4, 2021): thanks a lot, that fixes my issue too!
Author
Owner

@douglas1dev commented on GitHub (Oct 21, 2024):

thanks a lot

<!-- gh-comment-id:2427037137 --> @douglas1dev commented on GitHub (Oct 21, 2024): thanks a lot
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#369
No description provided.