1
0
Fork 0
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:
Steven Roose 2015-09-09 00:41:46 +02:00
parent db3658f60f
commit 035ca114c7

View file

@ -17,12 +17,12 @@ location PATHTOCHANGE/ {
fastcgi_param SCRIPT_FILENAME $request_filename;
}
location ^~ /bin/ {
location ^~ PATHTOCHANGE/bin/ {
deny all;
return 403;
}
location ^~ /config/ {
location ^~ PATHTOCHANGE/config/ {
deny all;
return 403;
}
@ -35,7 +35,7 @@ location PATHTOCHANGE/ {
rewrite ^PATHTOCHANGE/rest/(.*)\.view$ PATHTOCHANGE/rest/index.php?action=$1 last;
rewrite ^PATHTOCHANGE/rest/fake/(.+)$ PATHTOCHANGE/play/$1 last;
}
location /rest {
location PATHTOCHANGE/rest {
limit_except GET POST {
deny all;
}