• 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.

change root directory for apache

N

noworyz

Guest
I want to make the root directory for all my websites to be in the httpdocs/www/ folder instead of just the httpdocs folder. Is this possible and how. In Plesk, where is the document root defined?
Thanks
 
This is not going to be possible.

Plesk is hardcoded to write the httpd.include in a specific format, and that format includes the use of httpdocs as the root of the site.

As an alternative solution, perhaps removing the httpdocs folder and creating a symlink to the location you want to use instead (so if you want to have www in the root of the domain directory /var/www/domain.com/www and then create a symlink from www to httpdocs). Just make sure you sort out the permissions and ownership of the symlink, otherwise things break.

Good luck.
 
I am pretty sure I figured it out. Each domain has a httpd.include file that has the document root defined. You can put this definition in the vhost.conf and it will over ride the default.

I guess my question is, I am used to the htdocs/www for website but why is this different?
 
You are correct, the vhost.conf file is included after so you can override the setting that way.

As for why it is different... Just the way that Plesk decided to do it. Personally I am use to /var/www as that is how Debian does it.
 
I managed to do it as well.
just some directions:

Put the following line in '$DOMAIN$/conf//httpd.include' under the 'VirtualHost' section.

Include /usr/local/psa/home/vhosts/onlinehowto.net/conf/vhost.conf

then create or if exist edit $DOMAIN$/conf/vhost.conf and put the new location of the DocumentRoot folder:

DocumentRoot /whatever/the/new/documentroot/location/is
 
Back
Top