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

Issue Moving Document Root location

Johannes Kingma

Basic Pleskian
After moving the Document root to another folder and updating the Hosting settings accordingly the website is no longer accessible, even after waiting for about 60min.

What additional steps are required when the document root is moved?
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Default PLESK Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Cache-Control" content="no-cache">
<link rel="stylesheet" type="text/css" href="default.css"/>
</head>

<body>

<div class="body">

<div class="content">
<div class="message">
      <h1>This website is temporarily unavailable</h1>
</div>
</div>
</body>
</html>
 
Hi Johannes,

Please see the following documentation:


This should help you get on track. What did you set/change the document root to?

Thanks.
 
Thanks, yes that is so simple you'd think nothing can go wrong. But it doesn't work for us. The site is not available after being moved. Not immediately not after 15min and not after a 24 hours. So there must be missing something in that description.

In order to get or production server working we had to add a .htaccess in the httpsdocs folder:
In Plesk
dwh.domain.com:> website at httpsdocs/dwh/ (sanity check, clicking on the link gets me to the proper folder)
This did not work without a .htaccess in /httpsdocs
Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !dwh/
RewriteRule ^(.*)$ /dwh/$1

a staging version
dwh2.domain.com : website at httpsdocs/dwh2/ (also checks out), not .htacess needed
this url works fine, it has its own .htacess primarily to have product pretty permalinks

a developement version
dwh-php7.domain.com : website at httpsdocs/dwh-php7/ (checks out fine)
the url does not work proper. The href and src link point to /httpsdocs/dwh/dwh-php7/ The additional '/dwh' probably stemming from the htaccess in /httpsdocs

It seems that Document root settings are being ignored for production. I cannot experiment with the production site as it is in production but removing the .htaccess in /httpsdocs renders the production site unavailable.

(before you try: there is not a single WordPress site on this hoster)
 
Last edited:
Back
Top