LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apache listing directory contents (https://www.linuxquestions.org/questions/linux-software-2/apache-listing-directory-contents-472431/)

sneakyimp 08-09-2006 04:59 PM

apache listing directory contents
 
if i go to http://mysite.com/folder

then apache is listing all the files in 'folder'. i'm sure this must be a php ini setting or some similar. how do I change it? it would probably be useful to know that i don't have access to the apache conf file as it's on a shared hosting server.

bathory 08-10-2006 12:08 PM

If the server is configured to allow the use of .htaccess, you can create a file .htaccess containing:
Code:

Options -Indexes
and upload it to the folder you want to hide it's contents.
Else create and upload an empty index.html (or index.php) file to that folder.


All times are GMT -5. The time now is 07:26 AM.