当前位置:网站首页>Apache2配置对目录拒绝访问,但是可以访问里面文件的设置
Apache2配置对目录拒绝访问,但是可以访问里面文件的设置
2022-06-28 11:08:00 【soha_dong】
首先找到/etc/apache2/sites-available# 目录下的 "default" 这个文件夹。在里面添加你要设置的目录
<Directory /var/www/XXX>
Options FollowSymLinks
AllowOverride None
Order allow,deny
allow from all
</Directory>"Options FollowSymLinks"主要就是这句话很重要,默认是"Options FollowSymLinks"这样的
其实就是将Indexes去掉,Indexes表示若当前目录没有index.html就会显示目录结构,去掉就可以实现对当前目录的拦截
边栏推荐
- Hystrix deployment
- Information hidden in the trend chart of Hong Kong London gold market
- Blackmail virus of industrial control security
- DlhSoft Kanban Library for WPF
- BigDecimal 类的 compareTo() 和 equals()方法
- JS基础2
- Scientific research - web of science retrieval skills
- Calculate time using calendar
- 论文阅读 (59):Keyword-Based Diverse Image Retrieval with Variational Multiple Instance Graph
- 第2章 还记得点、线、面吗(二)
猜你喜欢
随机推荐
GDB简介
Redis数据库
Graduation season, some suggestions for you who are new to the society
Threads and thread pools
东方财富手机股票开户哪个券商更安全更方便?
Katalon global variable is referenced in testobject
Katalon framework tests a web page operation example code
远程登录sshd服务
Installing MySQL database (CentOS) in Linux source code
[semidrive source code analysis] [x9 chip startup process] 32 - play module analysis - RTOS side
Introduction to GDB
When an entity is converted to JSON, the field with null value is lost
【剑指Offer】49. 丑数
关于Pytorch中双向LSTM的输出表示问题
JS foundation 6
Gee: mcd64a1 based globfire daily fire data set
soapui的菜鸟教程
JS基础5
Blackmail virus of industrial control security
乌国家安全与国防委员会秘书:将对俄境内目标进行精确打击








![[practice] appium settings app is not running after 5000ms](/img/3c/5a7544561231a15a4bb5cfa9e102b3.png)
