server {
root /var/www/scandinasia.eu;
index index.php index.html index.htm;
server_name www.scandinasia.eu scandinasia.eu;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
}
location / {
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php$is_args$args;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/scandinasia.eu/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/scandinasia.eu/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = www.scandinasia.eu) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = scandinasia.eu) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name www.scandinasia.eu scandinasia.eu;
return 404; # managed by Certbot
}
That’s the Nginx configuration of this very website. Oh yeah, you pronounce it as engine x. I’m quite sure about it.
Leave a Reply