8 messages in ru.sysoev.nginxProxy passing and the URI
FromSent OnAttachments
mikeSep 22, 2008 10:30 pm 
Maxim DouninSep 23, 2008 1:51 am 
mikeSep 23, 2008 7:08 am 
ResicowSep 23, 2008 9:48 am 
Igor SysoevSep 23, 2008 10:05 am 
ResicowSep 23, 2008 10:49 am 
Igor SysoevSep 23, 2008 10:59 am 
ResicowSep 23, 2008 4:05 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Proxy passing and the URIActions...
From:mike (mike@gmail.com)
Date:Sep 22, 2008 10:30:39 pm
List:ru.sysoev.nginx

I have a request for http://foo.com/sites/something

I have this location block inside of server{} with root /home/foo/web/foo.com

location ^~ /sites { proxy_pass http://10.122.47.82; proxy_set_header Host foo.com; }

Trying to pass it to a second server.

The problem is, the second server receives this as the full URI; I have to define "root" to be the base URI (/home/foo/web/foo.com) so the /sites/something maps to it properly. Is there any way to remove parts of the URI when passing via proxy? So the /sites/something/ isn't needed on the upstream server?

Thanks