how to configure nginx as a reverse proxy like this?

yong xue ultraice at
Tue Oct 28 06:03:45 MSK 2008

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list