Apache Auto Renew SSL on Password Protected site

I have a web site that is password protected using Apache basic autenticiation.

I used following code in Apache config to password protect.


    AuthType Basic
    AuthName "Restricted Content"
    AuthUserFile /etc/apache2/demo-sok-htpaswd
    Require valid-user

The problem is when SSL need auto renew, it need url like http://domain/.well-known/ to be accessable with out any password for domain ownership verification.

To allow .well-known folder to be accessable with out password, i added following code in apache configuration file.


    Require all granted

After restarting apache, urls startng with .well-known work with out needing any password.

See Apache, SSL, LetsEncrypt

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *