How to disable directory indexing from apache2 when going to the server's root?

后端 未结 6 2277
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-12 12:11

I need to disable that indexing when I enter on my root directory on a apache2 server, any tips?

6条回答
  •  忘掉有多难
    2021-02-12 12:35

    If it's only one directory that you want to protect from viewing contents, you can also just add an index.html or index.php that will show whenever someone browses to that directory.

提交回复
热议问题