Running Jenkins behind Apache ends in a redirect loop
I am trying to set up Jenkins behind Apache and am running into user authentication issues. This is my vhost config file -
Listen 80
NameVirtualHost *:80
LoadModule auth_kerb_module modules/mod_auth_kerb.so
<VirtualHost *:80>
ServerName jenkins-staging.lb.company.com
ServerAlias jenkins-staging
ProxyPass / ajp://localhost:8019/
ProxyPassReverse / ajp://localhost:8019/
<LocationMatch "/.+">
Use Kerberos /path/to/keytab/file
</LocationMatch>
</VirtualHost>
The problem is that when I try to access Jenkins from browser using http://jenkins-staging.lb.company.com/jenkins it is redirected to http://jenkins-staging.lb.company.com/jenkins / secured and here it shows an error - "This web page has a redirect loop"
Analysis of the network shows that the authorization headers are sent / received correctly. Can anyone point me to what might be here and how to solve it?
+3
source to share
No one has answered this question yet
Check out similar questions: