简体   繁体   中英

Apache : Directory is still accessible even though options -index is specified

I have OHS 11g with apache 2.2 bundled with it. In OHS home, there is folder "icons" and sub folder "small" which are accessible through http request. To disable browsing on these directories, I have included below setting in httpd.conf and restarted the server. But still these 2 folders are accessible from UI. How to resolve this?

Options -Indexes

Appreciate your help!

Can you use .htaccess file?

Make sure file reads:

order deny,allow deny from all allow from [your.IP]

then just 'service apache2 restart'

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM