35 lines
682 B
Django/Jinja
35 lines
682 B
Django/Jinja
server {
|
|
{% include './templates/header.conf.j2' %}
|
|
|
|
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;
|
|
}
|
|
}
|