Welcome! Log In Create A New Profile

Advanced

N00b: Forwarding the full request to upstream server

Joel Parker
February 04, 2018 08:28PM
I have a situation where I receive a request like:

http://device.healthcheck.com/ready

I want this to be sent to a server upstream but keep the full request
intact. For example:

server {
resolver 8.8.8.8;
listen 80;

location / {
// send this too 192.168.10.34
proxy_pass $host:$server_port$uri$is_args$args;
}
}

I know this is probably easy to do but I am not sure how to accomplish this.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

N00b: Forwarding the full request to upstream server

Joel Parker February 04, 2018 08:28PM

Re: N00b: Forwarding the full request to upstream server

wickedhangover February 04, 2018 08:34PM

Re: N00b: Forwarding the full request to upstream server

loopback_proxy February 05, 2018 04:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 285
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready