Hi, Let's Encrypt needs to access to port 80 but I am forcing a redirection to https. I…
- User
Hi, Let's Encrypt needs to access to port 80 but I am forcing a redirection to https. I think it is possible to insert in nginx configuration a way to let let's encyrpt to access to /.well-known/acme-challenge/ . Please provide feedback and eventually the script for nginx.
- Assistant
Yes, you can configure Nginx to allow Let's Encrypt to access the
/.well-known/acme-challenge/directory over HTTP while redirecting all other traffic to HTTPS. To achieve this, you'll need to modify your Nginx configuration to include a location block that serves the challenge requests without redirection. Here’s how you can configure it: