2019-10-16 23:44:47 -06:00
|
|
|
### UNsecured test page
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name default_server;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ =404;
|
|
|
|
}
|
2019-10-17 01:23:11 -06:00
|
|
|
|
2019-10-17 01:32:00 -06:00
|
|
|
# process Let's Encrypt challenges
|
|
|
|
location ^~ /.well-known/acme-challenge {
|
|
|
|
# log requests for security reasons
|
|
|
|
access_log /var/log/nginx/LetsEncrypt_access.log main;
|
|
|
|
error_log /var/log/nginx/LetsEncrypt_error.log warn;
|
|
|
|
|
|
|
|
default_type text/plain;
|
|
|
|
root /usr/share/nginx/html/letsencrypt;
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
|
2019-10-17 01:23:11 -06:00
|
|
|
# error pages
|
|
|
|
include /etc/nginx/errorpages.conf;
|
2019-10-16 23:44:47 -06:00
|
|
|
}
|