i want to use nginx as a reverse proxy.
the back end is some storages. lets say storage1, storage2.
there are two service running in each storage,
one for upload on port 80, and one for download on port 81
so with nginx i want
http://hostname/storage1/upload/filename forward to storage1 port80
http://hostname/storage1/download/filename forward to storage1 port81
http://hostname/storage2/upload/filename forward to storage2 port80
http://hostname/storage2/download/filename forward to storage2 port81
how can i get this?
thx in advance.