How to Auto-Renew SSL on Password Protected 🔒 site Apache ✔️

How to Auto-Renew SSL on Password Protected 🔒 site Apache ✔️

On a website that is password protected using Apache basic authentication to auto-renew SSL we need to make the .well-known folder to be accessible without password.

Password protected Apache website:

<Directory "/var/www/html/">
    AuthType Basic
    AuthName "Password Protected"
    AuthUserFile /etc/apache2/htpaswd
    Require valid-user
</Directory>

Allow .well-known without password:

<Directory "/var/www/html/.well-known/">
    Require all granted
</Directory>
Written by
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.