Skip to content

Commit a7c195a

Browse files
Update comments in necessary Nginx configs
1 parent f6b3f90 commit a7c195a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/nginx_conf.d/certbot.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
server {
2-
# Listen only on the local host, port 81
2+
# Listen only on port 81 for localhost, and nothing else.
33
server_name 127.0.0.1;
44
listen 127.0.0.1:81 default_server;
55

66
charset utf-8;
77

8-
# Certbot's folder used for challenge response
8+
# Certbot's folder used for the ACME challenge response.
99
location ^~ /.well-known/acme-challenge {
1010
default_type text/plain;
1111
root /var/www/letsencrypt;

src/nginx_conf.d/redirector.conf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
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.
34
listen 80 default_server reuseport;
45
listen [::]:80 default_server reuseport;
56

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.
89
location '/.well-known/acme-challenge' {
910
default_type "text/plain";
1011
proxy_pass http://localhost:81;

0 commit comments

Comments
 (0)