How To Disable Apache File And Directory Indexing?
- Forums
- Linux Hosting
- How To Disable Apache File And Directory Indexing?
This Page Contains information about How To Disable Apache File And Directory Indexing? By apache server in category Linux Hosting with 3 Replies. [518], Last Updated: Sat May 18, 2024
apache server
Thu Sep 04, 2008
3 Comments
4991 Visits
today i noticed something of a security issue with my apacher server. i have a linux (unix) machine running fedora core 7 from RedHat and i noticed that when i go to a url that doesn't have an index file like index.html, or index.htm or index.php and so on, it show/displays all the files in that directory. well, i want to be able to hide all these files and instead show something else, like an error or something. i think this is error 404
anyway, this is how my page looks like, as you can see, it shows and displays my files, which i dont want them to be shown to my visitors. as you can see from this picture, is says:
index of /forums/images/ and parent directory and it lists all my files, i want to avoid having to list my files.
how do i do this?
search <directory must have the path to the directory root for public files, and change the options line to options none.
https://www.wallpaperama.com/forums/how-to-disable-apache-file-and-directory-indexing-t6331.html