转到服务器根目录时如何从apache2禁用目录索引? [英] How to disable directory indexing from apache2 when going to the server's root?

查看:88
本文介绍了转到服务器根目录时如何从apache2禁用目录索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在apache2服务器的根目录中输入索引时禁用该索引吗?

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

推荐答案

如果您只是要防止查看内容的一个目录,则还可以添加index.html或index.php,只要有人浏览它就会显示到该目录.

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.

这篇关于转到服务器根目录时如何从apache2禁用目录索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆