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

后端 未结 6 2259
爱一瞬间的悲伤
爱一瞬间的悲伤 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:53

    Make sure that you also add -Indexes to the config files in your sites-enabled (or sites-available as it was in my case) directory, they're usually inside the "/etc/apache2/" directory.

提交回复
热议问题