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

Hello, my name is Horacio Conde, Vic’s proud father, an apprentice maker and a computer science engineer. I live in Mexico City and I’ve been working professionally in software development for more than fifteen years now. I’m very interested in technologies such as programming, The Internet of Things (IoT) (Arduino, Raspberry Pi), electronics, physical computing, automation, woodworking.

Leave a Reply

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