du nouveau, avec la conf suivante j’ai accès à une page blanche sans erreur !
location /cagette {
alias /var/www/my_webapp__3/www/;
location ~ {
rewrite (.*)/css/[a-z0-9]+/(.*) /css/$2 break;
}
location ~ {
rewrite (.*)/js/[a-z0-9]+/(.*) /js/$2 break;
}
location ~ {
rewrite ^(.*)$ /index.php;
}
# Default indexes and catch-all
index index.html index.php;
try_files $uri $uri/ /cagette/index.php?$args;
# Prevent useless logs
location = /cagette/www/favicon.ico {
log_not_found off;
access_log off;
}
# Deny access to hidden files and directories
location ~ ^/cagette/(.+/|)\.(?!well-known\/) {
deny all;
}
# Execute and serve PHP files
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm-my_webapp__3.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
inspiré de ce poste : configuration-nginx-htaccess-pour-yellowcms