When I enter url, for example ignasdamunskis.lt/sites
, I want all the items in the sites
directory to be listed on the screen.
Is it possible without me listing them by hand? Is it secure for my website?
In the folder, add a file named .htaccess
containing the following:
Options +Indexes
This assumes your hosting allows such on-the-fly configuration.
Is it secure? Well, that depends on what's in the folder!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.