Skip to content

Custom Upstream Port #333

@thekief

Description

@thekief

I have a small setup of two servers, one with the HTTP Connect module and the target server. While testing I found out that the upstream's port doesn't seem to be respected. I got the following example log line:

connect_proxy-1  | 2025/04/17 12:52:49 [error] 7#7: *18 connect() failed (111: Connection refused) while connecting to upstream, client: 172.18.0.1, server: , request: "GET http://terminator:8446/special/stuff HTTP/1.1", upstream: "http://172.18.0.2:80/special/stuff", host: "terminator:8446"
connect_proxy-1  | 172.18.0.1 - - [17/Apr/2025:12:52:49 +0000] "GET http://terminator:8446/special/stuff HTTP/1.1" 502 314 "-" "curl/8.13.0" "-" "/special/stuff"

from the following curl request:

curl -k --proxy-insecure http://terminator:8446/special/stuff -k -v -x https://127.0.0.1:8445

Am I missing an argument to set the proper upstream port?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions