: add web4
All checks were successful
ansible-lint / lint-everything (push) Successful in 1m37s

This commit is contained in:
VC
2025-05-07 15:15:16 +02:00
parent 5c0f34846f
commit 9573d405ae
3 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
server {
{% include './templates/header.conf.j2' %}
root /var/www/koidev.mateu.be/public;
index index.html index.htm index.php;
# Media: images, icons, video, audio, fonts
location ~* \.(?:jpg|jpeg|gif|png|webp|ico|svg|webm|eot|ttf|otf|woff|woff2|js|css)$ {
expires 2w;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
try_files $uri $document_root$fastcgi_script_name =404;
include fastcgi_params;
fastcgi_pass unix:/run/php/php{{ php_version }}-fpm.sock;
}
}