victorwesterlund.com/server.conf

35 lines
No EOL
782 B
Text

server {
listen 80;
listen [::]:80;
server_name www.victorwesterlund.com victorwesterlund.com;
return 301 https://www.victorwesterlund.com$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name www.victorwesterlund.com;
ssl on;
include snippets/ssl.conf;
root /var/www/victorwesterlund.com;
location \ {
try_files $uri $uri.html $uri/ =404;
}
location ~ \.php$ {
add_header Access-Control-Allow-Origin *;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location ~ /\.git {
deny all;
return 404;
}
}