servnest
/
system
Archived
1
0
Fork 0
This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
system/config/nginx/http.conf

21 lines
537 B
Plaintext

server {
listen 80 default_server;
listen [::]:80 default_server;
return 400; # Don't allow unsecure HTTP requests
# Display an explanation page
error_page 400 @http400;
location @http400 {
root /var/www/errors;
try_files /http.php =500;
index http.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/errors.sock;
include inc/fastcgi.conf;
}
error_log /var/log/nginx/http-error.log info;
access_log /var/log/nginx/http-access.log;
}