..


Sponsored Links

How do I prevent Apache shows a list of files in the folder?

When you specify a URL of a folder and have not set a default page using the DirectoryIndex directive (see this FAQ ) web-server Apache returns, by default, the list of files in that folder.

To prevent this from happening is enough to specify and load a default file (eg "index.html") or use the Options directive-Indexes. For example:






 <Directory "/percorso/sito/web/">







 Options-Indexes







 </ Directory>



In the same category ...
E-Learning
Linux (Course) Linux (Course)
Complete guide to open-source system. From 49 €.
MySQL (Course) MySQL (Course)
Management of open-source database. From 39 €.
PHP (Course) PHP (Course)
Full course for creating dynamic Web sites. From 49 €.
Sponsored Links