proxy_pass issue

Brian Henson bhenson at xenocomp.com
Tue Oct 6 10:12:09 MSD 2009


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)

-----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/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5787 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20091006/d22c98ff/attachment.bin>


More information about the nginx mailing list