N00b: Forwarding the full request to upstream server

Joel Parker joel.parker.gm at gmail.com
Mon Feb 5 01:26:22 UTC 2018


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180204/b88688f1/attachment.html>


More information about the nginx mailing list