Hi,
I have a problem with css not applied with my nginx rules. You could see that on https://idees.reycoyrehourcq.me/
I don’t understand where is the problem, any help appreciated to resolve this :
server {
listen 80;
listen [::]:80;
server_name idees.reycoyrehourcq.me;
root /app;
index index.html index.php;
location /assets {
if (!-e $request_filename) {
rewrite "^/(.+)\.([0-9]{10})\.(js|css)$" /$1.$3 break;
}
}
# removes trailing slashes (prevents SEO duplicate content issues)
if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}
# site links
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
# prevent clients from accessing to backup/config/source files
location ~ (?:\.(?:bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$ {
deny all;
}
location ~ \.php$ {
try_files $uri = 404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_read_timeout 600;
fastcgi_index index.php;
}
}
I use these nginx conf in a docker with image webdevops/php-nginx:8.1
and kirby template installed with git clone on /app
folder