use instead of
This commit is contained in:
parent
701eccbb2d
commit
a03c41130a
|
@ -289,9 +289,9 @@ server {
|
|||
location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" {
|
||||
include /etc/nginx/conf.d/include/proxy-buffer;
|
||||
|
||||
rewrite /file/(.*) $1 break;
|
||||
rewrite /file/(.*) $1 break; # drop the /file/ prefix from uri
|
||||
|
||||
proxy_pass http://127.0.0.1/$1?attachment=true&$args;
|
||||
proxy_pass http://127.0.0.1/$uri?attachment=true&$args;
|
||||
}
|
||||
|
||||
# include custom locations, specific to the server
|
||||
|
|
Reference in New Issue