• 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

How can I enable the directory-surfing? The default is 403 forbidden.

E

editor

Guest
Letz say, there is a directory with 100 images.

http://www.mydomainname.tld/coolpics/

asdfas.jpg
47848.gif
jsadlfjsd.jpg
oeiuue.jpg
girlfriend.jpg
etc.

If in this directory "/coolpics/" does not exit a file called
"index.html", "index.php" or "index.shtml", then the PLESK
does not allow a visitor to surf in this directory. It says then:

Forbidden
You don't have permission to access /coolpics/ on this server.
Apache/2.0.51 (Fedora) Server at www.mydomainname.tld Port 80

How can I switch on this "directory-surfing"? Thank you very much.
 
Create an .htaccess file in the directory you want to see a file listing, make sure you put
Options +Indexes
in it
 
Back
Top