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:
parent
4a82ce6369
commit
679a0a201d
1 changed files with 8 additions and 9 deletions
|
@ -1,9 +1,8 @@
|
||||||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
location /__PATH__ {
|
location __PATH__ {
|
||||||
|
|
||||||
|
root /var/www/;
|
||||||
|
|
||||||
# Path to source
|
|
||||||
alias __FINALPATH__/;
|
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
|
@ -15,15 +14,15 @@ location /__PATH__ {
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/__PATH__/((favicons|thumbnails)/.+)$ {
|
location ~ ^__PATH__/((favicons|thumbnails)/.+)$ {
|
||||||
try_files /__PATH__/data/$1 =404;
|
try_files __PATH__/data/$1 =404;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/__PATH__/$ {
|
location ~ ^__PATH__/$ {
|
||||||
index index.php;
|
index index.php;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/__PATH__/(.+)$ {
|
location ~ ^__PATH__/(.+)$ {
|
||||||
try_files /__PATH__/public/$1 /__PATH__/index.php$is_args$args;
|
try_files __PATH__/public/$1 __PATH__/index.php$is_args$args;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue