Website shows “Index of /”: set default index page and disable directory listing (Plesk/LiteSpeed)
- 20.02.2026 00:58
-
- file management
- litespeed
- plesk
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)
- Log in to Plesk (from My.GARMTECH).
- Open Files for your domain.
- Open
httpdocsand 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.phpindex.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
- In Plesk open Websites & Domains → your domain → Hosting Settings.
- Find Default documents.
- Ensure it includes the correct filename for your website (for example,
index.phpfirst). - 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
- In Plesk open Files →
httpdocs. - Create or edit the file
.htaccess. - 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.