Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Getting multiple (3 times) authentication requests by .htacc |
|
Author |
|
htwik
Joined: 09 May 2020 Posts: 2
|
Posted: Sun 10 May '20 14:55 Post subject: Getting multiple (3 times) authentication requests by .htacc |
|
|
Hello,
Ubuntu 16.04.6
Apache: 2.4.41
MySQL: 5.7.28
Having problems with .htaccess it requests multiple (2-3 times) for authentication.
Its about MediaWiki 1.34.1. They suggestet to ask in Apache forum.
https://www.mediawiki.org/wiki/Topic:Vlxqvsejuy58k1ah
Description:
Everything is under mydomain.com/wiki/
After first authentication window the wiki site appears, but without the logo (left corner). Than it needs to confirm a second authentication window and than also the logo appears in left upper corner..
I us in LocalSettings.php this:
$wgLogo = $wgScriptPath . '/images/mylogo.png';
as mentioned "below the definition of $wgScriptPath!"
Now, I was putting the original mediawiki logo under /resources/assets/wiki.png
Than the authentication window appears again three times. Even when I rename it to wiki.png_not
Only when I rename also the logo under '/images/mylogo.png_not, so no logo is showing in left upper corner, the authentication window appears only two times. I wonder, still two times. Thanks. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
htwik
Joined: 09 May 2020 Posts: 2
|
Posted: Mon 08 Jun '20 13:28 Post subject: |
|
|
Hello,
the .htaccess file:
Code: |
AuthUserFile /www/htdocs/sub/domain.net/wiki/.htpasswd
AuthGroupFile /dev/null
AuthName 'bitte Zugangsdaten eingeben'
AuthType Basic
require valid-user
|
Thanks. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 08 Jun '20 15:25 Post subject: |
|
|
The 401 for the credentials should appear only once with that config, unless the client you use does not support it (I know of that issue with iOS clients) or there are different FQDN in the HTML like example.com and sub.example.com
You can remove or comment out AuthGroupFile to /dev/null |
|
Back to top |
|
|
|
|
|
|