There was a problem loading the comments.

Website shows “Index of /”: set default index page and disable directory listing (Plesk/LiteSpeed)

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

If your domain opens a page titled “Index of /”, the web server is showing a directory listing instead of your website. This usually happens when the site folder does not contain a default index file (like index.php or index.html), or when files were uploaded to the wrong directory.

Step 1 — Confirm the website files are in the correct folder

On GARMTECH Hosting (Plesk), the main website files should normally be inside:

  • httpdocs (primary document root for the domain)
  1. Log in to Plesk (from My.GARMTECH).
  2. Open Files for your domain.
  3. Open httpdocs and check if your website files are there.

If you uploaded your site into a different folder (for example, the domain root instead of httpdocs), move the files into httpdocs.

Step 2 — Make sure an index file exists

Common default index files are:

  • index.php
  • index.html / index.htm

If none of these exist, upload your website files again or create the correct entry point file for your application.

Step 3 — Check the “Default documents” setting in Plesk

  1. In Plesk open Websites & Domains → your domain → Hosting Settings.
  2. Find Default documents.
  3. Ensure it includes the correct filename for your website (for example, index.php first).
  4. Save changes.

Step 4 — Disable directory listing (recommended)

Directory listing can expose file names and should usually be disabled.

Option A — Disable listing with .htaccess

  1. In Plesk open Fileshttpdocs.
  2. Create or edit the file .htaccess.
  3. Add:
Options -Indexes

Option B — Disable it per folder

If you only need to hide listing in a specific folder, place .htaccess inside that folder instead of httpdocs.

After changes

  • Clear your browser cache (or test in an incognito window).
  • If you use Cloudflare, purge its cache if the old page is still shown.

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

Tags

© GARMTECH