nginx proxy to different path
        Posted  
        
            by 
                David Robertson
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by David Robertson
        
        
        
        Published on 2012-06-16T12:54:44Z
        Indexed on 
            2012/06/16
            15:17 UTC
        
        
        Read the original article
        Hit count: 419
        
I've read through the documentation for nginx's HttpProxyModule, but I can't figure this out:
I want it so that if someone visits, for example http://ss.example.com/1339850978, nginx will proxy them http://dl.dropbox.com/u/xxxxx/screenshots/1339850978.png.
If I was to just use this line in my config file:
proxy_pass http://dl.dropbox.com/u/xxxxx/screenshots/;,
then they would have to append the .png themselves.
tia,
David.
© Server Fault or respective owner