Buscar este blog

miércoles, 27 de mayo de 2015

jenkins - Apache: jenkins/j_acegi_security_check error

When using Jenkins behind a reverse proxy, you can get this error during login.
Solved using this proxy config:

ProxyRequests     Off
ProxyPreserveHost On

<Location /jenkins>
 SSLRequireSSL

 ProxyPass http://myHost:8080/jenkins
 ProxyPassReverse http://myHost:8080/jenkins

 RequestHeader set X-Forwarded-Proto "https"
 RequestHeader set X-Forwarded-Port "443"
</Location>
Header edit Location ^http://myHost/jenkins https://myHost/jenkins

No hay comentarios:

Publicar un comentario