32 lines
857 B
Plaintext
Executable File
32 lines
857 B
Plaintext
Executable File
server {
|
|
listen 443 ssl http2 default_server;
|
|
listen [::]:443 ssl http2 default_server;
|
|
server_name niver.atope.art;
|
|
|
|
root /srv/http/niver;
|
|
index index.php index.html index.htm;
|
|
try_files $uri $uri/ @extensionless-php; # $uri.html
|
|
index index.php;
|
|
|
|
include inc/modern.conf;
|
|
include inc/errors.conf;
|
|
|
|
error_log /var/log/nginx/niver.atope.art-error.log;
|
|
access_log /var/log/nginx/niver.atope.art-access.log;
|
|
|
|
more_set_headers "Content-Security-Policy : default-src 'none'; style-src 'self';";
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass unix:/var/run/php-fpm/niver.sock;
|
|
#fastcgi_index index.php;
|
|
include inc/fastcgi.conf;
|
|
try_files $uri =404;
|
|
}
|
|
|
|
location @extensionless-php {
|
|
rewrite ^(.*)$ $1.php last;
|
|
}
|
|
|
|
}
|