Need to proxypass to different servers.

Steve Holdoway steve at greengecko.co.nz
Thu Mar 21 05:55:34 UTC 2013


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_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> location / {
> proxy_pass http://192.168.1.1;
> }
> location /cms {
> proxy_pass http://192.168.1.2;
> }
> }
> 
> While accessing geotest.com/cms we are getting the application that running
> on 192.168.1.2 but when we access geotest.com/cms/address we are not
> getting the address page but insated we are getting the same index page.
> 
> That’s we are unable to access any subdirectories inside /cms/ if we access
> we are getting the index page only.
> 
> So can you please guys help us on it.
> 
> Thanks
> 
> Geo
> http://forum.nginx.org/read.php?2,237520
> 
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237520,237615#msg-237615

location ^~ /cms {
}

??
-- 
Steve Holdoway BSc(Hons) MIITP 
http://www.greengecko.co.nz
Skype: sholdowa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6189 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130321/f70bfa86/attachment.bin>


More information about the nginx mailing list