mirror of
https://github.com/YunoHost-Apps/ampache_ynh.git
synced 2024-09-03 18:15:55 +02:00
Error in nginx.conf regarding non-root installations
This commit is contained in:
parent
db3658f60f
commit
035ca114c7
1 changed files with 3 additions and 3 deletions
|
@ -17,12 +17,12 @@ location PATHTOCHANGE/ {
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /bin/ {
|
location ^~ PATHTOCHANGE/bin/ {
|
||||||
deny all;
|
deny all;
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ^~ /config/ {
|
location ^~ PATHTOCHANGE/config/ {
|
||||||
deny all;
|
deny all;
|
||||||
return 403;
|
return 403;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ location PATHTOCHANGE/ {
|
||||||
rewrite ^PATHTOCHANGE/rest/(.*)\.view$ PATHTOCHANGE/rest/index.php?action=$1 last;
|
rewrite ^PATHTOCHANGE/rest/(.*)\.view$ PATHTOCHANGE/rest/index.php?action=$1 last;
|
||||||
rewrite ^PATHTOCHANGE/rest/fake/(.+)$ PATHTOCHANGE/play/$1 last;
|
rewrite ^PATHTOCHANGE/rest/fake/(.+)$ PATHTOCHANGE/play/$1 last;
|
||||||
}
|
}
|
||||||
location /rest {
|
location PATHTOCHANGE/rest {
|
||||||
limit_except GET POST {
|
limit_except GET POST {
|
||||||
deny all;
|
deny all;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue