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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -