Re: Need to proxypass to different servers.

2013-03-21 Thread Francis Daly
On Thu, Mar 21, 2013 at 01:48:20AM -0400, geopcgeo wrote: Hi there, > Thanks for your updates. We are able to proxypass to another domain. But > the issue is domain’s sub directories are not working fine. So, when you do curl -i http://geotest.com/cms/address what response do you get? What r

Re: Need to proxypass to different servers.

2013-03-20 Thread geopcgeo
We also tried these options: location ^~ /cms { } location ^~ /cms/ { } But still gets same issue. We are only getting the index page. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237520,237618#msg-237618 ___ nginx mailing list nginx@ngi

Re: Need to proxypass to different servers.

2013-03-20 Thread Steve Holdoway
On Thu, 2013-03-21 at 01:48 -0400, geopcgeo wrote: > Thanks for your updates. We are able to proxypass to another domain. But > the issue is domain’s sub directories are not working fine. > That is in > > server { > listen 80; > server_name geotest.com; > proxy_set_header Host geotest.com; > proxy

Re: Need to proxypass to different servers.

2013-03-20 Thread geopcgeo
Thanks for your updates. We are able to proxypass to another domain. But the issue is domain’s sub directories are not working fine. That is in server { listen 80; server_name geotest.com; proxy_set_header Host geotest.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For

Re: Need to proxypass to different servers.

2013-03-20 Thread Geo P.C.
Thanks for your updates. We are able to proxypass to another domain. But the issue is domain’s sub directories are not working fine. That is in server { listen 80; server_name geotest.com; proxy_set_header Host geotest.com; proxy_set_header X-Real-IP $remote_addr; proxy_

Re: Need to proxypass to different servers.

2013-03-20 Thread Igor Sysoev
On Mar 19, 2013, at 18:41 , Andreas Weber wrote: > Im not expert but i think you must specify /cms BEFORE / because "/" will > match everything No. Since "/" and "/cms" are not regex locations, nginx finds the maximum match despite location order. This is why using only non-regex locations all

Re: Need to proxypass to different servers.

2013-03-19 Thread Francis Daly
On Tue, Mar 19, 2013 at 07:42:25PM +0530, Geo P.C. wrote: Hi there, > location / { > proxy_pass http://192.168.0.1/; #app1 > } > > location /cms { > proxy_pass http://192.168.0.2/; # > } > 1. geotest.com à Working fine getting the contents of app1 server > 2.

Re: Need to proxypass to different servers.

2013-03-19 Thread Andreas Weber
Hi, Im not expert but i think you must specify /cms BEFORE / because "/" will match everything best regards andreas Threepwood: Ha-ha! Taste cold steel, feeble cannon restraint rope! 2013/3/19 Geo P.C. > Thanks for your reply. Please see this: > > > In Proxy server we have the setup as fol

Re: Need to proxypass to different servers.

2013-03-19 Thread Geo P.C.
Thanks for your reply. Please see this: In Proxy server we have the setup as follows: server { listen 80; server_name geotest.com; proxy_buffering on; proxy_redirect off; proxy_set_header Host $host; p

Re: Need to proxypass to different servers.

2013-03-19 Thread Francis Daly
On Tue, Mar 19, 2013 at 09:25:09AM +0530, Geo P.C. wrote: Hi there, > We have 3 servers with Nginx as webserver. The setup is as follows: > So in proxy server we need to setup as while accessing geotest.com and all > its subdirectories like geotest.com/* it should go to app server 1 except > whi

Need to proxypass to different servers.

2013-03-18 Thread Geo P.C.
We have 3 servers with Nginx as webserver. The setup is as follows: Server1 : Proxy server Server2 : App Server1 Server3 : App Server 2 In both App servers port 80 is accessed only by Proxy server. We need to setup in such a way that while accessing geotest.com it will go to proxy server