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
apache jenkins kerberos


source to share


No one has answered this question yet

Check out similar questions:

106
Apache redirects to a different port
ten
Tomcat cookies not working through my ProxyPass VirtualHost
3
Jenkins for Apache with mod_proxy
2
Apache before Glassfish v3 with SSL using mod_proxy_ajp
1
Jenkins behind Apache server / Can't login to Jenkins
1
When the default virtual host is not available, virtual hosts are not available
0
El Capitan update and Apache VHost issues
0
Running Jenkins behind Apache 2.2 release
0
Jenkins Slave to connect to Jenkins Master running Apache



All Articles
Loading...
X
Show
Funny
Dev
Pics