When I browse to my apache website, I get the normal website login screen. After the login I can see the site like normal. But when I click on some hyperlink a new login window is showing up.
I can use the same login information and it will work. Or I can cancel the 2nd login and can see the full site content. But I can not understand why the system wants a 2nd login.
This is the conf-enabled/nagios.conf
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI FollowSymLinks
AllowOverride None
# Order allow,deny
# Allow from all
Order deny,allow
#Deny from all
Allow from 127.0.0.1 192.168.0.0/24
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None FollowSymLinks
AllowOverride None
# Order allow,deny
Allow from all
Order deny,allow
#Deny from all
Allow from 127.0.0.1 192.168.0.0/24
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
And this is the conf-enabled/thruk.conf
<IfModule mod_fcgid.c>
AddHandler fcgid-script .sh
IPCCommTimeout 120
<Directory /usr/share/thruk>
Options FollowSymLinks
AllowOverride All
order allow,deny
allow from all
# required for apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</Directory>
<Directory /etc/thruk/themes>
Options FollowSymLinks
allow from all
# required for apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</Directory>
<Directory /etc/thruk/plugins>
Options FollowSymLinks
allow from all
# required for apache 2.4
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</Directory>
Alias /thruk/documentation.html /usr/share/thruk/root/thruk/documentation.html
Alias /thruk/startup.html /usr/share/thruk/root/thruk/startup.html
AliasMatch ^/thruk/(.*\.cgi|.*\.html) /usr/share/thruk/fcgid_env.sh/thruk/$1
AliasMatch ^/thruk/plugins/(.*?)/(.*)$ /etc/thruk/plugins/plugins-enabled/$1/root/$2
Alias /thruk/themes/ /etc/thruk/themes/themes-enabled/
Alias /thruk /usr/share/thruk/root/thruk
<Location /thruk/>
Options ExecCGI FollowSymLinks
AuthName "Thruk Monitoring"
AuthName "Nagios Access"
AuthType Basic
#AuthUserFile /usr/local/nagios/etc/htpasswd.users
AuthUserFile /etc/thruk/htpasswd
Require valid-user
</Location>
<Location /thruk/cgi-bin/remote.cgi>
Order Deny,Allow
Allow from all
Satisfy any
</Location>
</IfModule>
# use compressed output if available
<IfModule mod_deflate.c>
<Location /thruk/>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
</Location>
</IfModule>
Both using the same password file and the same "AuthName". Since this is some cgi-module site I am not sure whats the problem is.