Disable directory listing on apache; but access to individual files should be allowed

前端 未结 5 2011
夕颜
夕颜 2021-01-31 19:28

I do not want to use .htaccess. How should I change my Directory attributes?


   ServerName abc.com
   DocumentRoot /usr/share/uploads
           


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-31 19:56

    All done above, but the directory info is still coming up? If you use index.php, rather than index.html, Check the following:

    
        DirectoryIndex index.php
    
    

提交回复
热议问题