I'd like to convert an url with the format
http:// foo.example.com:81/foo/s?id=(a number)
into something like
http:// www.example.com/foo/(a number)/
in Nginx.
I've tried with proxy_pass and rewrite but it doesn't work. I believe this is fairly simple but I'm not familiar with it. Thanks.