iono xs-vps - nginx-proxy-manager funktioniert nicht.

km#64

Newbie
Registriert
Mai 2024
Beiträge
2
Hallo Profis,
ich bekomme den NGINX-Proxy-Manager nicht zum weiterleiten.

Basis ist ein ionos xs-vps mit einer domoaine. Docker/ und -Compose laufen.

1716285767558.png


Der Proxy ist über port 81 errechbar.
1716286008141.png

Wenn ich eine nicht gültige IP angebe, zeigt der Proxy trotzdem grün online an.

Inhalt aus den Docker-Log:

"path": "/data/nginx/proxy_host/1.conf"
}
[5/21/2024] [9:23:12 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:23:12 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:23:12 AM] [Nginx ] › ℹ info Reloading Nginx
[5/21/2024] [9:23:12 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload
[5/21/2024] [9:24:54 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:24:54 AM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/1.conf
[5/21/2024] [9:24:54 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:24:54 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:24:54 AM] [Nginx ] › ℹ info Reloading Nginx
[5/21/2024] [9:24:54 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload
[5/21/2024] [9:25:53 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:25:54 AM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/1.conf
[5/21/2024] [9:25:54 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:25:54 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:25:54 AM] [Nginx ] › ℹ info Reloading Nginx
[5/21/2024] [9:25:54 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload
[5/21/2024] [9:26:28 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:26:28 AM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/1.conf
[5/21/2024] [9:26:28 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:26:28 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:26:28 AM] [Nginx ] › ℹ info Reloading Nginx
[5/21/2024] [9:26:28 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload
[5/21/2024] [9:36:40 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:36:40 AM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/1.conf
[5/21/2024] [9:36:40 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:36:40 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:36:40 AM] [Nginx ] › ℹ info Reloading Nginx
[5/21/2024] [9:36:40 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload
[5/21/2024] [9:44:40 AM] [Global ] › ℹ info PID 160 received SIGTERM
[5/21/2024] [9:44:40 AM] [Global ] › ℹ info Stopping.
❯ Configuring npm user ...
0
usermod: no changes
❯ Configuring npm group ...
❯ Checking paths ...
❯ Setting ownership ...
❯ Dynamic resolvers ...
❯ IPv6 ...
Enabling IPV6 in hosts in: /etc/nginx/conf.d
  • /etc/nginx/conf.d/default.conf
  • /etc/nginx/conf.d/include/assets.conf
  • /etc/nginx/conf.d/include/ssl-ciphers.conf
  • /etc/nginx/conf.d/include/ip_ranges.conf
  • /etc/nginx/conf.d/include/force-ssl.conf
  • /etc/nginx/conf.d/include/block-exploits.conf
  • /etc/nginx/conf.d/include/proxy.conf
  • /etc/nginx/conf.d/include/letsencrypt-acme-challenge.conf
  • /etc/nginx/conf.d/include/resolvers.conf
  • /etc/nginx/conf.d/production.conf
Enabling IPV6 in hosts in: /data/nginx
- /data/nginx/proxy_host/1.conf
❯ Docker secrets ...
-------------------------------------
_ _ ____ __ __
| \ | | _ \| \/ |
| \| | |_) | |\/| |
| |\ | __/| | | |
|| \|| || |_|
-------------------------------------
User: npm PUID:0 ID:0 GROUP:0
Group: npm PGID:0 ID:0
-------------------------------------
❯ Starting nginx ...
❯ Starting backend ...
[5/21/2024] [9:45:05 AM] [Global ] › ℹ info Using MySQL configuration
[5/21/2024] [9:45:07 AM] [Migrate ] › ℹ info Current database version: 20211108145214
[5/21/2024] [9:45:07 AM] [Setup ] › ℹ info Logrotate Timer initialized
[5/21/2024] [9:45:07 AM] [Global ] › ⬤ debug CMD: logrotate /etc/logrotate.d/nginx-proxy-manager
[5/21/2024] [9:45:07 AM] [Setup ] › ℹ info Logrotate completed.
[5/21/2024] [9:45:07 AM] [IP Ranges] › ℹ info Fetching IP Ranges from online services...
[5/21/2024] [9:45:07 AM] [IP Ranges] › ℹ info Fetching https://ip-ranges.amazonaws.com/ip-ranges.json
[5/21/2024] [9:45:07 AM] [IP Ranges] › ℹ info Fetching https://www.cloudflare.com/ips-v4
[5/21/2024] [9:45:07 AM] [IP Ranges] › ℹ info Fetching https://www.cloudflare.com/ips-v6
[5/21/2024] [9:45:07 AM] [SSL ] › ℹ info Let's Encrypt Renewal Timer initialized
[5/21/2024] [9:45:07 AM] [SSL ] › ℹ info Renewing SSL certs expiring within 30 days ...
[5/21/2024] [9:45:07 AM] [IP Ranges] › ℹ info IP Ranges Renewal Timer initialized
[5/21/2024] [9:45:07 AM] [Global ] › ℹ info Backend PID 151 listening on port 3000 ...
[5/21/2024] [9:45:07 AM] [SSL ] › ℹ info Completed SSL cert renew process
[5/21/2024] [9:47:10 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:47:10 AM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/1.conf
[5/21/2024] [9:47:10 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:47:10 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [9:47:10 AM] [Nginx ] › ℹ info Reloading Nginx
[5/21/2024] [9:47:10 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload
[5/21/2024] [10:06:12 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [10:06:12 AM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/1.conf
[5/21/2024] [10:06:12 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [10:06:12 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [10:06:12 AM] [Nginx ] › ℹ info Reloading Nginx
[5/21/2024] [10:06:12 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload
[5/21/2024] [10:07:02 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [10:07:02 AM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/1.conf
[5/21/2024] [10:07:02 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [10:07:03 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;"
[5/21/2024] [10:07:03 AM] [Nginx ] › ℹ info Reloading Nginx
[5/21/2024] [10:07:03 AM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload


In den Youtube Videos funktioniert der Proxy immer, ich habe hach der 10 Installation wie immer den gleiche Misserfolg.

Bin für jede Hilfe Dankbar.

PS. Habe natürlich auch via Google nach Lösungen gesucht, aber ohne Erfolg

VG
KM
 
Moin!

Wenn ich versuche,
Code:
test.in-reken.de
anzupingen, wird der host nicht gefunden. Auch ein nslookup liefert NXDOMAIN. Das muss jetzt noch nichts heißen - schließlich weiß ich nicht, was du an deinem Setup seither geändert hast. Aber du könntest dir mal die DNS settings anschauen und gegenprüfen.

Außerdem fällt auf, dass du für deinen nginx-container den externen Port 8085 auf den internen Port 80 weiterleitest, aber deine Proxy config leitet Anfragen an Port 80 der nginx-IP weiter. Dürfte so auch nicht gewollt sein.

Eventuell ergibt es Sinn, ein docker Netzwerk auf deinem Host aufzuspannen und alle container darin einzubinden, damit sie sich gegenseitig sehen können. Dann müsstest du im nginx proxy manager nicht umständlich mit IPs hantieren, sondern könntest einfach den hostnamen des containers dort eintragen.

viele Grüße!
 
Hallo lumpi2k,

danke für deine Hilfe.

Nun funktioniert es.
Lösung: für jede Subdomain musst ich eine Subdomain bei ionos anlegen und welche wiederum auf die xs-vps IP verweist. Hatte ich zwar zuvor auch getan, jetzt hat es ab geklappt. Der Proxy leitet jetzt an die WEB-Server weiter.

viele Grüße
KM
 
Kannst auch den C-Name Eintrag mit einer Wilcard anlegen (*.deine-domain.de). Damit werden alle Subdomains gleich weitergeleitet und du kannst im NPM die subdomains anlegen. Funzt bei mir auch so daheim.
 
Zurück
Oben