# \#upstream

**URL:** https://community.nginx.org/tag/upstream/131.md

[Latest](https://community.nginx.org/latest.md) · [Categories](https://community.nginx.org/categories.md) · [Tags](https://community.nginx.org/tags.md)

---

## [Has anyone encountered this problem? I'm experiencing a brief 502 error](https://community.nginx.org/t/has-anyone-encountered-this-problem-im-experiencing-a-brief-502-error/7919)

<div class="topic-metadata">

**Author:** [@jufu\_li](https://community.nginx.org/u/jufu_li)\
**Replies:** 4\
**Last updated:** [November 7, 2025, 2:51am UTC](https://community.nginx.org/t/has-anyone-encountered-this-problem-im-experiencing-a-brief-502-error/7919 "2025-11-07T02:51:32Z")

</div>

Please use this template for troubleshooting questions. \*\*My issue:\*\*Has anyone encountered this problem? I’m experiencing a brief nginx 502 error, but my backend is working fine. \*\*How I encountered the problem:\*\*Last…

---

## [Possible to make preread work for QUIC?](https://community.nginx.org/t/possible-to-make-preread-work-for-quic/6460)

<div class="topic-metadata">

**Author:** [@hgl](https://community.nginx.org/u/hgl)\
**Replies:** 0\
**Last updated:** [September 1, 2025, 2:39am UTC](https://community.nginx.org/t/possible-to-make-preread-work-for-quic/6460 "2025-09-01T02:39:38Z")

</div>

My issue: I’m experimenting load balancing for a bunch of upstream QUIC servers. I wonder if nginx is the right tool for this? I tried the stream module with the ssl\_preread on directive. How I encountered the proble…

---

## [Can NGINX Dynamically Reload Upstream Servers from External File?](https://community.nginx.org/t/can-nginx-dynamically-reload-upstream-servers-from-external-file/5482)

<div class="topic-metadata">

**Author:** [@jhonnmick](https://community.nginx.org/u/jhonnmick)\
**Replies:** 2\
**Last updated:** [July 21, 2025, 8:04pm UTC](https://community.nginx.org/t/can-nginx-dynamically-reload-upstream-servers-from-external-file/5482 "2025-07-21T20:04:15Z")

</div>

Hi all, I’m currently using NGINX OSS as a reverse proxy in front of several upstream microservices. I’d like to know if there’s a clean way to dynamically update the list of upstream servers from an external file or en…

---

## [Upstream sent duplicate header line: "Transfer-Encoding: chunked"](https://community.nginx.org/t/upstream-sent-duplicate-header-line-transfer-encoding-chunked/558)

<div class="topic-metadata">

**Author:** [@Dinesh\_Shinde](https://community.nginx.org/u/Dinesh_Shinde)\
**Replies:** 1\
**Last updated:** [February 18, 2025, 9:48pm UTC](https://community.nginx.org/t/upstream-sent-duplicate-header-line-transfer-encoding-chunked/558 "2025-02-18T21:48:17Z")

</div>

Getting error: upstream sent duplicate header line: "Transfer-Encoding: chunked\\ while reading response header from upstream, Its proxy service. Resulting in 502 NGINX error.

---

## [Log the upstream ssl cipher and the server cert](https://community.nginx.org/t/log-the-upstream-ssl-cipher-and-the-server-cert/1391)

<div class="topic-metadata">

**Author:** [@Kanthi](https://community.nginx.org/u/Kanthi)\
**Replies:** 1\
**Last updated:** [July 3, 2025, 8:59pm UTC](https://community.nginx.org/t/log-the-upstream-ssl-cipher-and-the-server-cert/1391 "2025-07-03T20:59:00Z")

</div>

What I’m trying to do: Use nginx as a proxy to a remote server where my client sends websocket requests to nginx and it should encrypt and send them to remote server. This works fine, but now I need to know what is the c…

---

## [Want to cache upstream response based on upstream response status code](https://community.nginx.org/t/want-to-cache-upstream-response-based-on-upstream-response-status-code/1581)

<div class="topic-metadata">

**Author:** [@hdalroti](https://community.nginx.org/u/hdalroti)\
**Replies:** 1\
**Last updated:** [April 2, 2025, 12:52am UTC](https://community.nginx.org/t/want-to-cache-upstream-response-based-on-upstream-response-status-code/1581 "2025-04-02T00:52:32Z")

</div>

I am trying to cache upstream response when upstream response with 200 and 401, not caching other response status code. Also want to make sure caching zone is separate for both cache. With my below configuration cachin…

---

## [Question about using Upstream with proxy\_pass (because want to use /etc/hosts)](https://community.nginx.org/t/question-about-using-upstream-with-proxy-pass-because-want-to-use-etc-hosts/946)

<div class="topic-metadata">

**Author:** [@ohaya1001](https://community.nginx.org/u/ohaya1001)\
**Replies:** 1\
**Last updated:** [March 9, 2025, 5:15pm UTC](https://community.nginx.org/t/question-about-using-upstream-with-proxy-pass-because-want-to-use-etc-hosts/946 "2025-03-09T17:15:25Z")

</div>

Hi, Sorry for the longish subject :(!! So I am in a situation where I need to use /etc/hosts for hostname resolution when I am doing a proxy\_pass, but from what I can tell, proxy\_pass doesn’t work with /etc/hosts. So …

---

## [Domain API Gateway error TypeError: NetworkError when attempting to fetch resource in wso2am 4.3.0](https://community.nginx.org/t/domain-api-gateway-error-typeerror-networkerror-when-attempting-to-fetch-resource-in-wso2am-4-3-0/585)

<div class="topic-metadata">

**Author:** [@vanhaiit90](https://community.nginx.org/u/vanhaiit90)\
**Replies:** 3\
**Last updated:** [March 6, 2025, 6:43pm UTC](https://community.nginx.org/t/domain-api-gateway-error-typeerror-networkerror-when-attempting-to-fetch-resource-in-wso2am-4-3-0/585 "2025-03-06T18:43:42Z")

</div>

I just completed config nginx for domain gateway wso2am But I tested the request on its demo, it reported an error as shown in the picture “TypeError: NetworkError when attempting to fetch resource.” upstream domai…
