• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How do i protect an ssl directory

P

ProggerPete

Guest
How do I protect a directory in the httpsdocs folder?

It shows up in the shared ssl for my host.
 
You shouldn`t place any custom files or folders in the httpsdocs folder. It is designed for technical reasons for Shared SSL implementation.

You should place all the folders in your regular httpdocs folder. To force https usage for accessing this folder, you should go to Plesk -> Domains -> <domain> -> Web Directories. There you should create a web directory for the folder you wish to protect. After the web directory has been created, you should click the cog wheel icon to the right of the web directory. On the next screen check the "Require SSL" checkbox and click OK.

Provided that you have protection enabled for this dircetory, you`ll have it accessible via SSL only and it`ll be password protected too.

Please, check this link for details:

http://download1.swsoft.com/Plesk/Plesk7.6/Windows/Docs/plesk-7.6-win-admins-guide/21459.htm
 
Hi, thanks for the reply.

I'm having trouble creating the web directory.

The folder I want to protect is /admin/

For name I put in 'test'
For path I put int '/admin'

When I try and create it tells me the path is an improper value.
 
Looks like Protection doesn`t work for shared SSL.

I will forward this to our developers, please, watch the updates for this feature.

Ok, looks like there`s a workaround:

you should go to Plesk -> Domains -> shardedssldomain.com (the master ssl domain) -> Web directories -> mydomain_com (the domain with the protected folder) -> admin -> Protection, and add protection here
 
I don't have access to the sharedssldomain (I've just got a reseller account) so I guess I'm stuck.

Oh well.
 
Back
Top