How to proxy http request to another https server with nginx -
i have 2 systems:
1 can send http request ip (not domain don't ask why)
2 can receive https request (has dynamic ip)
i need middleware in between transfer request http://middleware_ip/?my_get_request_with_data
https://dest_server/dest_server_path/?my_get_request_with_data
i tried nginx newbie. config doesn't work. says "too many redirections"
upstream dest_server { server subdomain.domain.com; } # define parameters specific virtual host/server server { # configure nginx proxy http requests upstream server location / { # define location of proxy server send request rewrite ^(.*)$ /dest_server_path/$1; proxy_pass https://dest_server; } }
Comments
Post a Comment