I have following location block in my server configuration:
location ~^/media/(.+)/(.+)$ {
error_log /home/user/Server/nginx/logs/error.log;
access_log /home/user/Server/nginx/logs/access.log;
proxy_pass https://bucketname.sgp1.digitaloceanspaces.com/$1/$2;
}
The problem is if I use english character filenames in second variable of regular expression then it works fine. But if we pass any unicode Hindi character as second variable of regular exp then it returns bad request.
In my access log it looks like this:
How to fix this issue? so that it can easily pass unicode characters in filename to Digital Ocean Spaces server.