logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Getting multiple (3 times) authentication requests by .htacc
Author
htwik



Joined: 09 May 2020
Posts: 2

PostPosted: Sun 10 May '20 14:55    Post subject: Getting multiple (3 times) authentication requests by .htacc Reply with quote

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

PostPosted: Mon 08 Jun '20 12:45    Post subject: Reply with quote

Please post your .htaccess file content. If it is long use http://apaste.info/ or http://hastebin.com/
Back to top
htwik



Joined: 09 May 2020
Posts: 2

PostPosted: Mon 08 Jun '20 13:28    Post subject: Reply with quote

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

PostPosted: Mon 08 Jun '20 15:25    Post subject: Reply with quote

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


Reply to topic   Topic: Getting multiple (3 times) authentication requests by .htacc View previous topic :: View next topic
Post new topic   Forum Index -> Apache