Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

phpipam + nginx-proxy = connection refused#2647

Unanswered
Leniwcowaty asked this question inQ&A
Discussion options

Hello there.
I have setup of 4 Docker projects:

  • Nginx-proxy
  • Heimdall
  • Privatebin
  • PHPIpam

I decided to use nginx-proxy to provide SSL and reverse-proxy to my services. All of them have indocker-compose.yml lines:
- VIRTUAL_HOST=<service>.<domain>.<tld>
- VIRTUAL_PORT=<port>
- VIRTUAL_PATH=/

(of course stuff in <> is properly configured)

As well as (including nginx-proxy):
network_mode: proxy-network

With Heimdall and Privatebin it works like a charm - SSL is being applied, reverse proxy works. Only when I get to PHPIpam I get502 error. When looking atdocker logs nginx-proxy I see this error:

nginx.1 | 2023/09/26 13:26:49 [error] 35#35: *1 connect() failed (111: Connection refused) while connecting to upstream, client: <client IP>, server: phpipam.<domain>.<tld>, request: "GET / HTTP/2.0", upstream: "http://<docker network IP>:80/", host: "phpipam.<domain>.<tld>" nginx.1 | phpipam.<domain>.<tld> <client IP> - - [26/Sep/2023:13:26:49 +0000] "GET / HTTP/2.0" 502 157 "-" "curl/7.81.0" "<docker network IP>:80"

So it looks like PHPIpam is refusing connection? But is this even possible in Docker? I tried with and without UFW, multiple subdomains. Nothing helps.
Please provide me with some info on how I can resolve this issue...

OS: Ubuntu Server 22.04.3
Docker version: 24.0.6 (from apt)

You must be logged in to vote

Replies: 1 comment

Comment options

Try the envvar -IPAM_TRUST_X_FORWARDED=true on the PHPIPam container.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@Leniwcowaty@illegalPointer
Converted from issue

This discussion was converted from issue #2309 on August 16, 2025 08:32.


[8]ページ先頭

©2009-2025 Movatter.jp