When website is disabled, Plesk opens instead of the default page

Created:

2017-02-10 12:50:06 UTC

Modified:

2017-08-08 13:42:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

When website is disabled, Plesk opens instead of the default page

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  • A website is in the Disabled status.
  • When trying to access the website, Plesk opens instead of the web server's default page.
  • When checking the website with curl , 301 Moved Permanently answer is returned:

    # curl example.com
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>301 Moved Permanently</title>
    </head><body>
    <h1>Moved Permanently</h1>
    <p>The document has moved <a href="https://example-plesk.com:8443/">here</a>.</p>
    <hr>
    <address>Apache Server at example.com Port 80</address>
    </body></html>
  • There is an .htaccess file in the default web server's website directory /var/www/vhosts/default/htdocs with the following content:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^203.0.113.2$
    RewriteCond %{HTTP_HOST} ^203.0.113.3$
    RewriteRule ^.*$ https://example-plesk.com:8443/ [R,L]
    Redirect 301 / https://example-plesk.com:8443/

Cause

Redirect rule in the file /var/www/vhosts/default/htdocs/.htaccess .

Resolution

Delete the file /var/www/vhosts/default/htdocs/.htaccess itself or delete the redirect rule from it.

Have more questions? Submit a request
Please sign in to leave a comment.