I am trying to simplify my proxy_pass problem and eliminate port issues.

Shouldn't the following result in http://127.0.0.1/test1 passing to
http://google.com ?  It redirects back to 127.0.0.1


server {
  listen *:80;

   location /test1127.0.0.1/ {
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
      proxy_pass http://google.com;
   }
}

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?2,262255,262277#msg-262277

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to