victorwesterlund.com/server.conf
Victor Westerlund ed5bda63b0 Added new repo to NGINX config
Replaced folder root with GitHub-cloned repo
2020-11-28 17:30:09 +01:00

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;
}
}