• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Directory browsing not working

michiiee

New Pleskian
Hi there, i need help.

I am using Plesk Obsidian and a Wordpress installation. I have quite a lot of files for some users of my homepage.
I want the users to be able to use directory browsing to access those files.

This is how my directory looks like:
products/
directory_a/
directory_b/
index.html

in directory_a(
direcory_c
dir_d

and so on.
Not every directory conains a index.html.

What works:
I am able to open the products folder in my Browser mydomain.com/products/ succesfully, it loads the index.html correctly.

What doesnt work:
Opening
mydomain.com/products/direcory_a/
I get a 403 forbidden.
I would like to see all the subdirectories.

I tried everything written here: How to enable/disable directory browsing on Plesk for Linux?
but without success.

Any suggestions would be very appreciated.

Regards,
Michael
 
OK it seems that setting the checkbox "Statische Dateien direkt durch nginx bedienen " (eng. serve static files with nginx) somehow helps. But still for some folders i am getting 403. This is really confusing.
 
Ok you can delete this post, i figured it out myself. I had to change all the permissions of all files and directories to 0755 with chmod command.
 
Actually, the solution would have been to create an .htaccess file in document root with this content:
Code:
Options +Indexes
 
Back
Top