proxy_pass issue

Igor Sysoev is at rambler-co.ru
Tue Oct 6 11:58:45 MSD 2009


On Tue, Oct 06, 2009 at 12:12:09AM -0600, Brian Henson wrote:

> Try leaving the last / off of the /blog/.  It would be written as //blog/ if 
> I'm not mistaken.(please anyone correct me if I'm wrong)

No, this proxy_pass replaces "/blog/" part in URI to "/", i.e.
"/blog/page.html" will be "/page.html".

> -----Original Message-----
> From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of Stuart 
> Mckeown
> Sent: Monday, October 05, 2009 5:36 AM
> To: nginx at sysoev.ru
> Subject: proxy_pass issue
> 
> 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)
> 
> 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!
> 
> Cheers
> Stuart
> -- 
> Posted via http://www.ruby-forum.com/.



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





More information about the nginx mailing list