43 lines
1.1 KiB
Django/Jinja
43 lines
1.1 KiB
Django/Jinja
server {
|
|
listen *:443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
server_name nintendojofr.com www.nintendojofr.com;
|
|
access_log /var/log/nginx/nintendojofr.com.access.log combined;
|
|
access_log syslog:server=unix:/dev/log combined;
|
|
error_log /var/log/nginx/nintendojofr.com.error.log;
|
|
error_log syslog:server=unix:/dev/log;
|
|
ssl_certificate /etc/x509/nintendojofr.com/fullchain.cer;
|
|
ssl_certificate_key /etc/x509/nintendojofr.com/nintendojofr.com.key;
|
|
|
|
root /var/www/www.nintendojofr.com/;
|
|
index index.html index.htm index.php;
|
|
|
|
location ~ ^/forum/(.*)$ {
|
|
return 301 https://forum.nintendojo.fr/$1?$args;
|
|
}
|
|
|
|
location ~ ^/forum {
|
|
return 301 https://forum.nintendojo.fr/;
|
|
}
|
|
|
|
location ~ ^/images/(.*)$ {
|
|
return 404;
|
|
}
|
|
|
|
location ~ ^/(index).php(/.*)+ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri $uri/ =404;
|
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php$uri?$args;
|
|
}
|
|
}
|