0609c680e0
- actually create letsencrypt challenge directory - point default server-blocks to proper LE directory - fix access and error logging for LE requests - update server-block configuration comment headers
26 lines
563 B
Plaintext
26 lines
563 B
Plaintext
#
|
|
# Default server block with LetsEncrypt support
|
|
#
|
|
|
|
server {
|
|
listen 80;
|
|
server_name default_server;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
# process Let's Encrypt challenges
|
|
location ^~ /.well-known/acme-challenge {
|
|
# log requests for security reasons
|
|
access_log /var/log/nginx/access.log main;
|
|
error_log /var/log/nginx/error.log warn;
|
|
|
|
default_type text/plain;
|
|
root /usr/share/nginx/letsencrypt;
|
|
autoindex on;
|
|
}
|
|
|
|
# error pages
|
|
include /etc/nginx/errorpages.conf;
|
|
} |