ab-nginx/build/sites/05-nonsecured.conf
Asif Bacchus 318e595bbd refactor(SITES): rename default site block files
- remove test from filenames to avoid confusion
- these are production-capable files
2021-01-07 07:11:20 -07:00

25 lines
552 B
Plaintext

### UNsecured test page
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/LetsEncrypt_access.log main;
error_log /var/log/nginx/LetsEncrypt_error.log warn;
default_type text/plain;
root /LEChallenge;
autoindex on;
}
# error pages
include /etc/nginx/errorpages.conf;
}