Welcome! Log In Create A New Profile

Advanced

Re: proxy_pass issue

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 5.7 KB open | download Brian Henson 10/06/2009 Read message
October 06, 2009 04:06AM
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/
Subject Author Posted

proxy_pass issue

Stuart Mckeown October 05, 2009 07:42AM

Re: proxy_pass issue

agentzh October 05, 2009 10:00PM

RE: proxy_pass issue Attachments

Brian Henson October 06, 2009 02:18AM

Re: proxy_pass issue

Igor Sysoev October 06, 2009 04:04AM

Re: proxy_pass issue

Igor Sysoev October 06, 2009 04:06AM

Re: proxy_pass issue

Stuart Mckeown October 06, 2009 08:44AM

Re: proxy_pass issue

Igor Sysoev October 06, 2009 08:52AM

Re: proxy_pass issue

Stuart Mckeown October 06, 2009 09:18AM

Re: proxy_pass issue

Igor Sysoev October 06, 2009 09:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 202
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready