33 lines
706 B
Plaintext
33 lines
706 B
Plaintext
|
server {
|
||
|
listen 127.0.0.1:80;
|
||
|
server_name _;
|
||
|
|
||
|
access_log /var/log/nginx/localhost.access.log;
|
||
|
error_log /var/log/nginx/localhost.error.log;
|
||
|
|
||
|
location ~ /.well-known/acme-challenge/ {
|
||
|
alias /var/www/challenges/;
|
||
|
try_files $uri =404;
|
||
|
allow 127.0.0.1;
|
||
|
deny all;
|
||
|
}
|
||
|
|
||
|
location /stub_status {
|
||
|
stub_status on;
|
||
|
access_log off;
|
||
|
allow 127.0.0.1;
|
||
|
deny all;
|
||
|
}
|
||
|
|
||
|
# location /php_status {
|
||
|
# access_log off;
|
||
|
# include /etc/nginx/fastcgi_params;
|
||
|
# fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
||
|
# fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
|
||
|
# }
|
||
|
|
||
|
location / {
|
||
|
deny all;
|
||
|
}
|
||
|
}
|