1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/selfoss_ynh.git synced 2024-09-03 20:16:21 +02:00

Fix nginx.conf

This commit is contained in:
Binnette 2022-04-06 23:45:40 +02:00
parent 4a82ce6369
commit 679a0a201d

View file

@ -1,9 +1,8 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location /__PATH__ {
location __PATH__ {
root /var/www/;
# Path to source
alias __FINALPATH__/;
location ~ [^/]\.php(/|$) {
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php;
@ -15,15 +14,15 @@ location /__PATH__ {
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ~ ^/__PATH__/((favicons|thumbnails)/.+)$ {
try_files /__PATH__/data/$1 =404;
location ~ ^__PATH__/((favicons|thumbnails)/.+)$ {
try_files __PATH__/data/$1 =404;
}
location ~ ^/__PATH__/$ {
location ~ ^__PATH__/$ {
index index.php;
}
location ~ ^/__PATH__/(.+)$ {
try_files /__PATH__/public/$1 /__PATH__/index.php$is_args$args;
location ~ ^__PATH__/(.+)$ {
try_files __PATH__/public/$1 __PATH__/index.php$is_args$args;
}
}