Welcome! Log In Create A New Profile


Subdomains and certbot

Posted by iixLokoZx 
Subdomains and certbot
July 12, 2018 01:49PM

I learned last year how to work with the small things of nginx, since then I liked to learn more about it. Currently, I'm working with SSL certs. I have it working well on my main domain.

I followed this tutorial at the beginning to do this: https://www.humankode.com/ssl/how-to-set-up-free-ssl-certificates-from-lets-encrypt-using-docker-and-nginx

What my issue is, I have subdomains next to my main domain. My subdomains are connected by giving the url and portnumber. I figured out by doing research what I have to do with the configuration, and can set my minds to that. But, I work with the Docker environment.. Is here anyone that works with Docker? I found many things that could help me in the setup. Basically, I think that I need to do the same steps as for the main domain, exept with the sub's address.

The tutorial above is working fine, my main domain runs on ssl, before without that.. so it is reachable.
Inside the Docker container, I received an error:

Failed authorization procedure. www.subdomain.example.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.subdomain.example.com

And so ever. It says that the subdomain is not reachable, and that I have to check the A/AAAA records.
How can I make this working?

You can find my attachments of example code in this topic.
Thanks in advance,

open | download - nginx global site config.txt (3.1 KB)
open | download - nginx subdomain config.txt (241 bytes)
Re: Subdomains and certbot
July 13, 2018 09:17AM
Nevermind, I solved my own problem.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 229
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready