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