• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • 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.

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