mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-13 19:13:42 +02:00
35 lines
814 B
Text
35 lines
814 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/github_victorwesterlund_victorwesterlund.com/public;
|
|
|
|
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;
|
|
}
|
|
}
|