I have this url:
http://localhost:8888/images/upload/root/folderA/folderB?arg1=A&arg2=B
so I want to redirect everything to:
http://localhost:8080/v1/files_upload/
and it should be something like:
http:
I have the following:
location ~ ^/images/upload/([^/]+)(/.*)\?(.*)$ {
upload_pass @after_upload;
...
...
}
location @after_upload {
proxy_pass http://localhost:8080/v1/files_put/$1/$2?$3;
}
I checked it and only $ 1 and $ 2 work , but $ 3 arguments are not sent to proxy_pass
Thanks in advance!
source
share