File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
server {
2
- # Listen only on the local host, port 81
2
+ # Listen only on port 81 for localhost, and nothing else.
3
3
server_name 127.0.0.1;
4
4
listen 127.0.0.1:81 default_server;
5
5
6
6
charset utf-8;
7
7
8
- # Certbot's folder used for challenge response
8
+ # Certbot's folder used for the ACME challenge response.
9
9
location ^~ /.well-known/acme-challenge {
10
10
default_type text/plain;
11
11
root /var/www/letsencrypt;
Original file line number Diff line number Diff line change 1
1
server {
2
- # Listen on plain old HTTP and catch any hostname for redirect to HTTPS
2
+ # Listen on plain old HTTP and catch all requests so they can be redirected
3
+ # to HTTPS instead.
3
4
listen 80 default_server reuseport;
4
5
listen [::]:80 default_server reuseport;
5
6
6
- # Pass this particular URL off to the certbot server for it to be able to
7
- # authenticate with letsencrypt and get the HTTPS certificates.
7
+ # Pass this particular URL off to the certbot server so it can properly
8
+ # respond to the Let's Encrypt ACME challenges for the HTTPS certificates.
8
9
location '/.well-known/acme-challenge' {
9
10
default_type "text/plain";
10
11
proxy_pass http://localhost:81;
You can’t perform that action at this time.
0 commit comments