myos/docker/nginx/nginx_default_location

24 lines
466 B
Plaintext
Raw Normal View History

2022-12-22 03:57:43 +01:00
error_page 403 /localhost/403.html;
error_page 404 /localhost/404.html;
error_page 500 /localhost/500.html;
error_page 502 503 504 /localhost/50x.html;
2022-12-10 18:58:25 +01:00
index index.php index.html index.htm;
2022-12-22 03:57:43 +01:00
try_files $uri $uri/ =404;
2022-12-10 18:58:25 +01:00
2022-12-22 03:57:43 +01:00
location /localhost/ {
alias /usr/share/nginx/html/;
}
location ^~ /.well-known/acme-challenge/ {
auth_basic off;
auth_request off;
allow all;
root /usr/share/nginx/html;
try_files $uri =404;
break;
}
location ~ /\. {
2022-12-10 18:58:25 +01:00
deny all;
}