mirror of
https://github.com/YunoHost-Apps/ampache_ynh.git
synced 2024-09-03 18:15:55 +02:00
remove ending slash of location + reformating
This commit is contained in:
parent
90a298124f
commit
b52d884b6d
1 changed files with 17 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
|||
location PATHTOCHANGE/ {
|
||||
location PATHTOCHANGE {
|
||||
|
||||
alias ALIASTOCHANGE;
|
||||
|
||||
|
@ -12,20 +12,20 @@ location PATHTOCHANGE/ {
|
|||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param REMOTE_USER $remote_user;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
|
||||
location ^~ PATHTOCHANGE/bin/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
location ^~ PATHTOCHANGE/config/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
location ^~ PATHTOCHANGE/config/ {
|
||||
deny all;
|
||||
return 403;
|
||||
}
|
||||
|
||||
rewrite ^PATHTOCHANGE/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/name/(.*)$ PATHTOCHANGE/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&name=$5 last;
|
||||
rewrite ^PATHTOCHANGE/play/ssid/(\w+)/type/(\w+)/oid/([0-9]+)/uid/([0-9]+)/client/(.*)/noscrobble/([0-1])/name/(.*)$ PATHTOCHANGE/play/index.php?ssid=$1&type=$2&oid=$3&uid=$4&client=$5&noscrobble=$6&name=$7 last;
|
||||
|
@ -35,13 +35,13 @@ location PATHTOCHANGE/ {
|
|||
rewrite ^PATHTOCHANGE/rest/(.*)\.view$ PATHTOCHANGE/rest/index.php?action=$1 last;
|
||||
rewrite ^PATHTOCHANGE/rest/fake/(.+)$ PATHTOCHANGE/play/$1 last;
|
||||
}
|
||||
location PATHTOCHANGE/rest {
|
||||
limit_except GET POST {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
location PATHTOCHANGE/rest {
|
||||
limit_except GET POST {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
# include conf.d/yunohost_panel.conf.inc;
|
||||
# Include SSOWAT user panel.
|
||||
# include conf.d/yunohost_panel.conf.inc;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue