40 lines
802 B
Django/Jinja
40 lines
802 B
Django/Jinja
server {
|
|
{% include './templates/header.conf.j2' %}
|
|
root /var/www/forum.nintendojo.fr/;
|
|
index index.html index.htm index.php;
|
|
|
|
client_max_body_size 10M;
|
|
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
|
|
expires 2w;
|
|
log_not_found off;
|
|
}
|
|
|
|
location ~ \.htaccess$ {
|
|
deny all;
|
|
}
|
|
|
|
location ~ ^/(files|store|cache|images/avatars/upload)/ {
|
|
deny all;
|
|
}
|
|
|
|
location ~ ^/(config|common)\.php$ {
|
|
deny all;
|
|
}
|
|
|
|
location ~ /(app).php(/.*)+ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
try_files $fastcgi_script_name =404;
|
|
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
|
fastcgi_read_timeout 60;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri $uri/ =404;
|
|
fastcgi_pass unix:/var/run/php/php{{ php_version }}-fpm.sock;
|
|
include fastcgi_params;
|
|
}
|
|
}
|
|
|