proxy_pass issue

Igor Sysoev is at rambler-co.ru
Tue Oct 6 12:01:19 MSD 2009


On Mon, Oct 05, 2009 at 01:35:34PM +0200, Stuart Mckeown wrote:

> Hey guys, first time poster. Struggling to get nginx to proxy_pass
> through to another server.
> 
> Server 1: http://storecrowd.com/ (Nginx)
> Server 2: http://storecrowd.com/blog/ (Nginx)

Do you have two servers with the same ?

> I've got nginx set up on server 1 to proxy_pass through to IP address
> using:
> 
>    location /blog/ {
>       proxy_pass http://74.207.242.38/
>       }
> 
> Visiting the blog url you can see that it does work. However all static
> content on http://storecrowd.com/blog/ gives a 404 error & as such the
> images aren't working.
> 
> Is there a better way to do this, or are we missing something in the
> proxy_pass?
> 
> Any help greatly appreciated!

It's seems you need

   location /wp-content/uploads/ {
       proxy_pass http://74.207.242.38;
   }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list