Can not access .htaccess protected site with Chome browser

SYSTEM INFORMATION
OS type and version Rocky 9.7
Webmin version 2.621
Virtualmin version 8.0.1.gpl
Webserver version 2.4.62

Im going crazy…
I want a site to have a login… .htaccess.
each time i try to access it with Google Chrome I get an error,

Unauthorized
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn’t understand how to supply the credentials required.

with Firefox 128 ESR it works!

here is the httpd.conf

<VirtualHost *:80>
    ServerName classicpress.o-arp.de
    ServerAlias www.classicpress.o-arp.de
    DocumentRoot /home/classicpress.o-arp.de/public_html
    ErrorLog /var/log/virtualmin/classicpress.o-arp.de_error_log
    CustomLog /var/log/virtualmin/classicpress.o-arp.de_access_log combined
    DirectoryIndex index.php index.htm index.html
    <Directory /home/classicpress.o-arp.de/public_html>
        Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
        Require all granted
        AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
    </Directory>
    <Directory /home/classicpress.o-arp.de/cgi-bin>
        Require all granted
        AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
        SetHandler proxy:unix:/var/fcgiwrap/17713844851275765.sock/socket|fcgi://localhost
        ProxyFCGIBackendType GENERIC
    </Directory>
    Protocols h2 h2c http/1.1
    ProxyPass /.well-known !
    ScriptAlias /cgi-bin/ /home/classicpress.o-arp.de/cgi-bin/
    ScriptAlias /awstats /home/classicpress.o-arp.de/cgi-bin/awstats.pl
    RemoveHandler .php
    RemoveHandler .php8.0
    RemoveHandler .php8.1
    RemoveHandler .php8.2
    RemoveHandler .php8.3
    RemoveHandler .php8.4
    RemoveHandler .php8.5
    RewriteEngine on
    RewriteRule ^/(?!.well-known)(.*)$ https://%{HTTP_HOST}/$1 [R]
    RedirectMatch ^/awstats$ /awstats/
    <FilesMatch \.php$>
        SetHandler proxy:unix:/run/php-fpm/17713844851275765.sock|fcgi://127.0.0.1
    </FilesMatch>
    <Files awstats.pl>
        AuthName "classicpress.o-arp.de statistics"
        AuthType Basic
        AuthUserFile /home/classicpress.o-arp.de/.awstats-htpasswd
        require valid-user
    </Files>
</VirtualHost>
<VirtualHost *:443>
    ServerName classicpress.o-arp.de
    ServerAlias www.classicpress.o-arp.de
    DocumentRoot /home/classicpress.o-arp.de/public_html
    ErrorLog /var/log/virtualmin/classicpress.o-arp.de_error_log
    CustomLog /var/log/virtualmin/classicpress.o-arp.de_access_log combined
    DirectoryIndex index.php index.htm index.html
    <Directory /home/classicpress.o-arp.de/public_html>
        Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch
        Require all granted
        AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
    </Directory>
    <Directory /home/classicpress.o-arp.de/cgi-bin>
        Require all granted
        AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
        SetHandler proxy:unix:/var/fcgiwrap/17713844851275765.sock/socket|fcgi://localhost
        ProxyFCGIBackendType GENERIC
    </Directory>
    Protocols h2 h2c http/1.1
    ProxyPass /.well-known !
    <FilesMatch \.php$>
        SetHandler proxy:unix:/run/php-fpm/17713844851275765.sock|fcgi://127.0.0.1
    </FilesMatch>
    ScriptAlias /cgi-bin/ /home/classicpress.o-arp.de/cgi-bin/
    ScriptAlias /awstats /home/classicpress.o-arp.de/cgi-bin/awstats.pl
    RemoveHandler .php
    RemoveHandler .php8.0
    RemoveHandler .php8.1
    RemoveHandler .php8.2
    RemoveHandler .php8.3
    RemoveHandler .php8.4
    RemoveHandler .php8.5
    SSLEngine on
    SSLCertificateFile /etc/ssl/virtualmin/17713844851275765/ssl.cert
    SSLCertificateKeyFile /etc/ssl/virtualmin/17713844851275765/ssl.key
    SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
    RedirectMatch ^/awstats$ /awstats/
    <Files awstats.pl>
        AuthName "classicpress.o-arp.de statistics"
        AuthType Basic
        AuthUserFile /home/classicpress.o-arp.de/.awstats-htpasswd
        require valid-user
    </Files>
    SSLCACertificateFile /etc/ssl/virtualmin/17713844851275765/ssl.ca
</VirtualHost>

and the .htaccess

AuthType Basic
AuthName "Bitte anmelden"
AuthUserFile /home/classicpress.o-arp.de/.htpasswd
require valid-user

/home/domain.tld/.htpasswd ist there and is chmod 644

I just checked some other sites, all the same problem.
Firefox works, Chrome gives an error.

Here is the solution…
Chrome settings… I dont use is very often… I just watned to check is the site works with it…

But why the fuck did Chrome told me it was a server problem?

Probably not wise to have your configuration, complete with website name, publicly exposed. Since it isn’t relevant to the problem, I’d delete that portion of the post. At minimum, do a search and replace on the domain name.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.