Welcome! Log In Create A New Profile

Advanced

Re: Need to proxypass to different servers.

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 6 KB open | download GreenGecko 03/21/2013 Read message
Francis Daly
March 19, 2013 04:18PM
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. geotest.com/a1 à Working fine getting the contents of app1 server

So far, so good.

> 3. geotest.com/cms à Not working. Site proxypass to app2 server but
> we are getting a 404 page.

What request do you want nginx to make of the app2 server here? -- /,
/cms, or something else?

What request is nginx making of the app2 server? -- check the app2 server
logs, if the nginx logs don't tell you.

If you make either of those requests of app2 yourself (using curl),
do you get what you expect?

> 4. geotest.com/cmsssss àSame as above result.

Same questions. What do you want to happen? What does happen?

> For your information the cms application running app2 server is graphite
> server and you can find the nginx configuration file from the url:
> http://www.frlinux.eu/?p=199 in which we use the server name as geotest..com

Unless graphite is one of those special and beautiful apps that allow
themselves to be easily reverse-proxied at a non-root url, you may end
up happier if you just use two separate server{} blocks with different
server_name directives.

But that can be worried about after you see how your /cms locations work.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Need to proxypass to different servers.

Geo P.C. March 18, 2013 11:56PM

Re: Need to proxypass to different servers.

Francis Daly March 19, 2013 05:22AM

Re: Need to proxypass to different servers.

Geo P.C. March 19, 2013 10:14AM

Re: Need to proxypass to different servers.

senior.weber@gmail.com March 19, 2013 10:42AM

Re: Need to proxypass to different servers.

Igor Sysoev March 20, 2013 04:44AM

Re: Need to proxypass to different servers.

geopcgeo March 21, 2013 01:46AM

Re: Need to proxypass to different servers.

Francis Daly March 19, 2013 04:18PM

Re: Need to proxypass to different servers.

geopcgeo March 21, 2013 01:48AM

Re: Need to proxypass to different servers. Attachments

GreenGecko March 21, 2013 01:56AM

Re: Need to proxypass to different servers.

geopcgeo March 21, 2013 02:10AM

Re: Need to proxypass to different servers.

Francis Daly March 21, 2013 02:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready