Skip to main content

AutoSSL and password protected domains

Comments

3 comments

  • linux4me2
    What if you moved your actual password-protected sites to a password-protected subfolder, leaving just a blank index.htm in the /public_html and removing the password-protection for /public_html? That way, AutoSSL could install an SSL certificate that would be valid for all your subfolders and password-protected sites. You might be able to use redirects in the /public_html/.htaccess to deal with the move and make it transparent for your users. You might also be able to use a subdomain instead of a subfolder. I'm not sure if AutoSSL needs to put the text file in a subdomain, or just /public_html, but that might be better. I think moving the sites to a subfolder/subdomain is better than a temporary fix because the AutoSSL certs renew every 90 days.
    0
  • morrow95
    There are no users - these are for my own use, mostly testing, which is why I want them blocked off from public access. I believe subdomains would require the same text file for AutoSSL, but if anyone knows for sure please comment. A folder is certainly an option, but then that kind of defeats the whole testing purpose if the links would have a different structure (I will have to look at htaccess stuff to see if there is something to change that and mimic the files actually being at root rather than in a folder under root).
    0
  • cPanelMichael
    Hello, You could exclude certain file extensions (.cpaneldcv, .txt) via entries like this in the .htaccess file:
    Allow from all Satisfy any Allow from all Satisfy any
    This would work, assuming you have no .txt files you need to protect in the directory. Thank you.
    0

Please sign in to leave a comment.