First commit
This commit is contained in:
38
roles/nginx/templates/vhosts/forum.nintendojo.fr.conf.j2
Normal file
38
roles/nginx/templates/vhosts/forum.nintendojo.fr.conf.j2
Normal file
@@ -0,0 +1,38 @@
|
||||
server {
|
||||
{% include './templates/header.conf.j2' %}
|
||||
root /srv/http/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)(/.*)$;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user