Score:0

Apache 2.4 ErrorDocument 401 breaks basic authentification

sl flag

I got an issue with the basic authentication, when I add ErrorDocument 401 /var/www/rainbow/static/401.html you can click on cancel on auth prompt and you got access without auth .

Here is my site conf :

<VirtualHost *:443>
    Protocols h2 http/1.1
    ServerName XXX.app
    ServerAlias XXX.app

    <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|svg)$">
        Header set Cache-Control "max-age=31536000, public"
    </FilesMatch>

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/rainbow/public
    ErrorLog ${APACHE_LOG_DIR}/rainbow-error.log
    CustomLog ${APACHE_LOG_DIR}/rainbow-access.log combined

    ErrorDocument 401 /var/www/html/static/401.html

    SSLCertificateFile /etc/letsencrypt/live/XXXX
    SSLCertificateKeyFile /etc/letsencrypt/live/XXXXX
    Include /etc/letsencrypt/options-ssl-apache.conf

    
</VirtualHost>
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.