Could Nginx redirected proxied traffic?

Dewangga dewanggaba at xtremenitro.org
Sat Sep 13 09:46:56 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have configuration like this :

... snip ...
location /monitor {
	proxy_pass http://backend:6800/;
	proxy_redirect default;
}
... snip ...

Trying to access /monitor, it's works. But, I tried to access URL
behind them, /monitor/logs/, /monitor/jobs/ it's error 404, the log said :

ip.ad.dr.es - - [13/Sep/2014:16:42:35 +0700] "GET /logs/ HTTP/1.1" 404
599 "http://engine.xtremenitro.org/monitor" "Mozilla/5.0 (X11; Linux
x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"
ip.ad.dr.es - - [13/Sep/2014:16:45:24 +0700] "GET /jobs HTTP/1.1" 404
599 "http://engine.xtremenitro.org/monitor" "Mozilla/5.0 (X11; Linux
x86_64; rv:31.0) Gecko/20100101 Firefox/31.0"

But, if I try to access them directly through port 6800 (traffic not
proxied from nginx), everything works. I assume, that actually the
backend support rewrite URL, but while proxied, the rewrite URL didn't
works.

Any hints?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJUFBKPAAoJEEyntV5BtO+Q3bAH/RCUkGSFkuLWt0Rgefuh60VE
yGxkXDhCa6BnO7Zv4VsvDb6XSYfax/qlmoIL5Grii5GfpjI4Rp3K6rR738JPqIM3
yd3DGmBOJPxPsenf5CFBofXi2k8KxyhSoJDXj9yZ6oszLNZ8JKYYQvIYSbMiqw4/
IMDmhGDHDVuhZB7zhxmxMrFWAn7B6UOuabd+Db3L7tpti1sLAdIkmOSXO+9CVAXA
A+ihW1J717K02YK4MO4ycS+Zgz++SC7+nSESpna1+n+UR+ix4NeUo0wDMlhGjkpZ
EHWEa5masuNHfXsURcPdzRIMn5IkPiV64WrEvFMN7QvUYgLDSxb8ezHzAg0SBcU=
=OGrl
-----END PGP SIGNATURE-----



More information about the nginx mailing list