• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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