• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Question Password protection - except for subfolder?

DerekTP

New Pleskian
I have a site hosted on Windows with Plesk. I need to both password-protect the root folder, but also wish to use "Let's Encrypt" SSL encryption. Once the password protection is on, attempts to renew the certificate fail because the request to the challenge in /.well-known folder is forbidden due to lack of password. Is there a way aournd this (explicitly removing protection for the subdirectory); if not I will need to disable the password protection, renew the certificate, then re-enable protection; can I do that without losing all the username/passwords?
 
Answering part of my own question, in case it helps others... haven't found a way to have an unprotected subfolder under a password-protected root; but a workaround to manually renew the certificates is as follows (all in Plesk)
  1. Go to Password Protected directories
  2. Click on the name of the protected root directory - this will list the names of the users
  3. Click on "directory settings" - this shows the directory path and the title you've given it
  4. Change the path ("directory name") to a non-existent directory, and click OK
  5. Plesk removes the protection for the root folder; you can now go back to Websites & Domains, and click on Let's encrypt
  6. Click "renew" at the bottom of the page; this process takes quite a few seconds
  7. When confirmed that renewal of the SSL certificate is complete, repeat steps 1 - 4 above but change the directory path back to the original (just / for the root folder)
This temporarily removes the password protection and allows you to manually trigger renewal of the certificate.

A further issue I've found with SSL renewal is if you have automatic redirection from http: to https: enabled; (in IIS Settings, Require SSL/TLS is checked). The renewal process verifies by calling a page over http, and doesn't follow the automatic redirection; renewal therefore fails. You'd need to uncheck the Require SSL/TLS checkbox temporarily, then do a manual renew of your certificate.
 
Back
Top