add web4
This commit is contained in:
0
roles/nginx/templates/vhosts/ramage2022.fr.conf.j2
Normal file
0
roles/nginx/templates/vhosts/ramage2022.fr.conf.j2
Normal file
49
roles/nginx/templates/vhosts/www.ramage2022.fr.conf.j2
Normal file
49
roles/nginx/templates/vhosts/www.ramage2022.fr.conf.j2
Normal file
@@ -0,0 +1,49 @@
|
||||
## WP Sebicomics
|
||||
server {
|
||||
listen *:443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
server_name web4.dmz.mateu.be;
|
||||
access_log /var/log/nginx/www.ramage2022.fr.access.log combined;
|
||||
access_log syslog:server=unix:/dev/log combined;
|
||||
error_log /var/log/nginx/www.ramage2022.fr.error.log;
|
||||
error_log syslog:server=unix:/dev/log;
|
||||
ssl_certificate /etc/x509/web4.dmz.mateu.be/fullchain.cer;
|
||||
ssl_certificate_key /etc/x509/web4.dmz.mateu.be/web4.dmz.mateu.be.key;
|
||||
|
||||
root /srv/http/www.ramage2022.fr/;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
client_max_body_size 512M;
|
||||
|
||||
# couper les fichiers cachés
|
||||
location ~* /(?:uploads|files)/.*\.php$ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
# Optimisation des images
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg)$ {
|
||||
expires 1w;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
# Interprétation PHP
|
||||
location ~ ^/(index).php(/.*)+ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||
try_files $fastcgi_script_name =404;
|
||||
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
|
||||
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;
|
||||
fastcgi_read_timeout 60;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$uri?$args;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user