• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Subdomains and Protected Directories

iainh

Basic Pleskian
I am using psa v7.5.4_build75050824.12 os_RedHat el4

How can I create a protected directory in a subdomain?

Creating a subdomain is no issue. Creating a protected directory is no issue. Creating a protected directory in a subdomain seems impossible.

Protected directories only seem to be created from a root of [vhostRoot]/httpdocs/ (or httpsdocs)

Subdomains have their docroot in [vhostRoot]/subdomains/subdomainName/httpdocs/ (or httpsdocs)

It is not permitted when defining a protected directory location to cut back and define something like:

../subdomains/subdomainName/httpdocs/myProtectedDir/

and there seem no other way to pointed the protected directory creator to anything other than the main domain docroot.

Likewise, if you go into subdomain management there is no subdomain management options beyond creating the subdomains and setting admin rights to each.

I've even tried File Maintenance and while I can navigate into the subdomain docroot and create directories, there's no protected directory option!

Do I need to resort to creating my own .htaccess file or creating a new vhost in the name of the subdomain?

Many thanks.../Iain

PS: One further thought...

Creating a new vhost in the subdomain name would seem one solution, but not really what's wanted - a bit overkill? Might another option be to alter the domain to the subdomain name...but would that then affect Email? e.g.

The domain name is currently set as 'www' UNchecked, domain.co.uk

If the domain name were altered to 'www' UNchecked, subdomain.domain.co.uk, would that force all Email to change from <name@domain.co.uk> to <name@subdomain.co.uk> - not a desired result!

Note the vhost is running Email for the domain but is not current the www host and so the www CNAME points to a different host...
 
Back
Top