简体   繁体   中英

Cant Use a Subdomain in NGINX Proxy Manager

i try to set up the NGINX Reverse Proxy Manger on my Docker. Now i have a DynDNS adress and i works with the proxy manager because i can reach the default page of nginx proxy manger over the dyndns adress. When i try to connect a port with the standart dyndns name that i have over the proxy manager it works fine, also with ssl. But when i try to use A subdomain like subdomain1.laptopsimon.net nothing works i cant create a ssl certificate and i even cant connect over http to the side.

Has anybody a Idea why I can not use Subdomains?

Also i get this Letsencrypt Error in the LOG:

[12/25/2022] [1:50:45 PM] [SSL ] › ℹ info Requesting Let'sEncrypt certificates for Cert #9: subdomain1.laptopsimon.ddns.net [12/25/2022] [1:50:45 PM] [SSL ] › ℹ info Command: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-9" --agree-tos --authenticator webroot --email "simon.hauber@outlook.de" --preferred-challenges "dns,http" --domains "subdomain1.laptopsimon.ddns.net" [12/25/2022] [1:50:49 PM] [Nginx ] › ℹ info Reloading Nginx [12/25/2022] [1:50:49 PM] [Express ] › ⚠ warning Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-9" --agree-tos --authenticator webroot --email "simon.hauber@outlook.de" --preferred-challenges "dns,http" --domains "subdomain1.laptopsimon.ddns.net" Saving debug log to /var/log/letsencrypt/letsencrypt.log Some challenges have failed. Ask for help or search for solutions at https://community.letsencrypt.org . See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

Your DDNS provider, No-IP, doesn't support "fourth-level" subdomains (see also this answer ).

You could have example.ddns.net working fine and DNS A record pointing to an IP address you have chosen, but they won't resolve eg test.example.ddns.net.

You can verify this yourself with command nslookup subdomain1.laptopsimon.ddns.net .

IIRC, that was the reason why I stopped using them and continued with duckdns.org. There, every subdomain, even test1.test2.example.duckdns.org will resolve to same IP address.

From let'sencrypt log excerpt it's not clear to me what could be the problem. You will need to check

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM