Articles in this section

Default domain page is shown on domain hosted on Plesk server despite existence of valid index file

Plesk for Windows kb: how-to Plesk for Linux

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Symptom

  • Domain example.com was created in Plesk using the button Domains > Add Domain.
  • After that, the content of the website was transferred to the current server from another Plesk server or added manually.
  • When accessing a website in a browser, the Default webpage generated for example.com is displayed, despite that fact, the valid Index file, for example, index.php or Default.aspx exists in the domain's document root.

Cause

A new empty domain with a default virtual host structure was created before the content of the domain was imported/created.

The Domain Default Page (index.html file) is automatically deployed during the domain creation. By default, index.html has priority over other index files. The second index file is not processed due to the fact that it has a lower priority.

In case the issue appears when the domain was moved within the server, contact Support for Root Cause Investigation.

Resolution

In order to increase the priority for another index file over index.html, perform the following:

On Plesk for Linux
  1. Log in to Plesk.
  2. Go to Domains > example.com > Hosting & DNS > Apache & nginx.
  3. Switch the option Index files to Enter custom value.
  4. Place the required index file at the beginning of the line, for example:
    lin.png
  5. Apply changes.
On Plesk for Windows
  1. Log in to Plesk.
  2. Go to Domains > example.com > Hosting & DNS > IIS Settings.
  3. In the field Default documents, change the order of index files and place the required file above the Index.html, for example:
    2.png
  4. Apply changes.

Note: In case the default index.html file is not required, it is also possible to rename or delete it in Domains > example.com > File Manager.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.