On Thu, Mar 20, 2014 at 09:05:47AM -0700, Dennis Jacobfeuerborn wrote:
> I just installed a fresh Jenkins behind Apache httpd and while Jenkins is
> available it tells me "It appears that your reverse proxy set up is
> broken." but I don't know why.
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+says+my+reverse+proxy+setup+is+broken
> This is my httpd config:
>
> <VirtualHost *:80>
> ServerName jenkins.local
> ProxyRequests Off
> ProxyPreserveHost On
> ProxyPass /
http://127.0.0.1:8080/
> ProxyPassReverse /
http://127.0.0.1:8080/
> </VirtualHost>
>
> What specifically is wrong with this configuration?
I'm not sure. I have basically the same configuration, which works
fine, with no errors:
<VirtualHost *:443> (because seriously, HTTPS. It's 2014)
ProxyPass /
http://localhost:8080/
ProxyPassReverse /
http://localhost:8080/
# the following converts http links to https in Location: headers, IIRC
ProxyPassReverse /
http://jenkins.example.com/
<Proxy
http://localhost:8080/>
Order deny,allow
Allow from all
</Proxy>
# prevent the client from setting this header
RequestHeader unset X-Forwarded-User
# black magic to copy REMOTE_USER to X-Forwarded-User
# (I don't think this actually works.)
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule .* - [E=RU:%1]
RequestHeader set X-Forwarded-User %{RU}e
# authentication
<Location />
AuthType Basic
AuthName "
example.com"
AuthUserFile /etc/apache2/htpasswd
Require valid-user
</Location>
</VirtualHost>
I get the 'ProxyRequests Off' from Ubuntu's standard
/etc/apache2/mods-enabled/proxy.conf
Marius Gedminas
--
#define QUESTION ((bb) || !(bb)) /* Shakespeare */