Plesk

Default domain page is shown for a domain in Plesk despite the valid index file exists

Symptom

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.

Resolution

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

For Linux

  1. Log into Plesk.
  2. Go to Domains > example.com > Hosting & DNS tab > Apache & nginx Settings.
  3. Switch the Index files option to Enter custom value.
  4. Place the required index file at the beginning of the line, for example:
  5. Apply changes.

For Windows

  1. Log into Plesk.
  2. Go to Domains > example.com > Hosting & DNS tab > IIS Settings.
  3. In the Default documents field change the order of index files and place the required file above the Index.html, for example:
  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.