Hide Jenkins on port 8080 behind NGINX using proxy_pass ?

edofthemountain nginx-forum at nginx.us
Fri Oct 16 13:48:32 UTC 2015


Sorry typo in posting...

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

server {
  listen *:80;

   location /test1/ {
      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,262278#msg-262278



More information about the nginx mailing list