• 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!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Changing Subdomain webroot Problems

KingsleyM

New Pleskian
Hi all,

I've been trying to change the webroot folder of one of my subdomains and so far I've only achieved lots of stress and frustration.

I am running:
Parallels Plesk Panel version 9.2.2
Operating system Linux 2.6.27.29-0.1-default
CPU AuthenticAMD, Dual-Core AMD Opteron(tm) Processor 1212 HE
Average load 0.08; 0.04; 0.01

My subdomain structure at present looks like this:

<main_domain>/subdomains/<subdomain>/httpdocs/

What I would like is:

<main_domain>/subdomains/<subdomain>/httpdocs/public

so that public is my new webroot folder, so I can have a /system/ folder that holds my site config/settings files outside the root.

I've already done the following:
1. Created a vhost.conf file in the conf folder of my subdomain
2. Ran the following command '/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com'
3. Checked to see that the vhost was linked in http.include.
4. Restarted apache via the Plesk Panel

I've tried various syntax within my vhost.conf file, the latest being:

DocumentRoot /var/www/vhosts/<main_domain>/subdomains</subdomain>/httpdocs/public
<Directory /var/www/vhosts/<main_domain>/subdomains/</subdomain>/httpdocs>
php_admin_value open_basedir "/var/www/vhosts/<main_domain>/subdomains/</subdomain>/httpdocs/public:/tmp"
php_admin_value safe_mode off
Allowoverride All
</Directory>

Which results in the following error log when I try and navigate to the subdomain:

[error] [client xxx.xxx.xxxxxx] client denied by server configuration: /var/www

I'm hoping someone can point me in the right direction with this, or perhaps even give me a better solution.

Thanks In Advance to anyone who can help!

- Kingsley
 
Last edited:
Back
Top