Commit 356d534b by Jillian Vogel

Uses proxy_set_header Host $http_host

$http_host is the same as $host, except it also includes the port number if
present in the request.

This is required for valid proxied content rewriting if jenkins_nginx_port is
set to something other than the default port 80.
parent db8df3a0
......@@ -11,7 +11,7 @@ server {
# The following settings from https://wiki.jenkins-ci.org/display/JENKINS/Running+Hudson+behind+Nginx
sendfile off;
proxy_set_header Host $host;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 150;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment