Troubleshooting reverse proxy setup

80 views
Skip to first unread message

Jonathan Hodgson

unread,
Oct 26, 2016, 3:29:29 PM10/26/16
to Jenkins Users
Hi,

I'm currently getting a "It appears that your reverse proxy set up is broken." message on the Manage Jenkins Page.

I'm using Apache as a proxy to Jenkins (which is on another machine).

My proxy setup looks like thsi
ProxyPass         /jenkins  http://192.168.0.6:8080/jenkins nocanon
ProxyPassReverse  /jenkins  http://192.168.0.6:8080/jenkins
ProxyRequests     Off
AllowEncodedSlashes NoDecode

# Local reverse proxy authorization override
# Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/pr$
  Order deny,allow
  Allow from all
</Proxy>



I've tried 

curl -iL -e http:/MyServer.url/jenkins/manage \
   http://User:Pass...@MyServer.url/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test


But the response I get is

HTTP/1.1 302 Found
Date: Wed, 26 Oct 2016 19:26:37 GMT
Server: Jetty(9.2.z-SNAPSHOT)
X-Content-Type-Options: nosniff
Content-Length: 0

HTTP/1.1 404 Not Found
Date: Wed, 26 Oct 2016 19:26:37 GMT
Server: Apache
Vary: Accept-Encoding
Content-Length: 531
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/http:/MyServer.url/jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/testForReverseProxySetup/http://MyServer.url/jenkins/manage/ was not found on this server.</p>
<hr>
<address>Apache Server at MyServer.url Port 80</address>
</body></html>

Which makes me suspect the command is malformed, but it's copied straight from the WIKI page (with the change of url and adding a username and password)

So I don't really know where to start trying to troubleshoot this.

Any ideas anyone?

Thanks

Jonathan Hodgson

unread,
Oct 26, 2016, 4:55:45 PM10/26/16
to Jenkins Users
I should probably add that although I can access jenkins through the browser from my slave machines, connecting them as slaves no longer works.

It was fine when I accessed jenkins directly, but now I've set up the proxy, neither the launch button (which I use with my windows slave) nor the "java -jar slave.jar" line (which I use with my OSX slave) work.
Reply all
Reply to author
Forward
0 new messages