Proper configuration for Apache reverse-proxy in front of Jenkins (https)

So, I finally got the chance to find out how to get rid of the annoying Jenkins message “It appears that your reverse proxy set up is broken”, in my particular configuration.

My configuration is as follows:

  • Jenkins 2.2
  • Apache 2.4 (SSL enabled)

The minimal working configuration I found is as follows:

<VirtualHost *:443>
    ServerName "subdomain.domain.com"

    ProxyPass / http://localhost:8080/ nocanon
    ProxyPassReverse / http://localhost:8080/

    AllowEncodedSlashes     NoDecode
    RequestHeader set X-Forwarded-Proto "https"
    RequestHeader set X-Forwarded-Port "443"

    RewriteEngine on
</VirtualHost>

By horaz

My name is Horacio Conde, a computer science engineer and an apprentice maker I live in Mexico City and I've been working professionally in software development for more than twenty years now. I'm interested in technologies such as The Internet of Things (IoT) (Arduino, Raspberry Pi), electronics, physical computing, automation, woodworking and similar stuff.

Leave a Reply

Your email address will not be published. Required fields are marked *