servnest-mkosi/mkosi.extra/etc/nginx/sites/http.conf

24 lines
502 B
Plaintext
Raw Normal View History

2022-04-20 00:29:47 +02:00
server {
listen [::1]:42080 default_server;
listen 127.0.0.1:42080 default_server;
location / {
return 403; # Don't allow unsecure HTTP requests
}
2022-04-20 00:29:47 +02:00
# Display an explanation page
error_page 403 @http403;
location @http403 {
2022-06-23 19:50:50 +02:00
root /srv/niver/php/errors;
2022-04-20 00:29:47 +02:00
try_files /http.php =500;
index http.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm/errors.sock;
include inc/fastcgi.conf;
}
location /.well-known/acme-challenge {
2022-06-23 19:50:50 +02:00
alias /srv/niver/acme/;
}
2022-04-20 00:29:47 +02:00
}