21 lines
537 B
Plaintext
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;
|
|
}
|