为了安全或者方便需要关闭或者开启apache的目录浏览 

 
关闭目录浏览 
 
修改http.conf 文件 
 
Options Indexes FollowSymLinks  
 
改为 
 
 Options -Indexes FollowSymLinks
 
 
关闭一些信息 修改 
 
 ServerSignature Off
ServerTokens Prod 
 
 说明 
 
ServerTokens 指令 
 
ServerTokens Prod[uctOnly]
服务器会发送(比如): Server: Apache
ServerTokens Major
服务器会发送(比如): Server: Apache/2
ServerTokens Minor
服务器会发送(比如): Server: Apache/2.0
ServerTokens Min[imal]
服务器会发送(比如): Server: Apache/2.0.41
ServerTokens OS
服务器会发送(比如): Server: Apache/2.0.41 (Unix)
ServerTokens Full (或未指定)
服务器会发送(比如): Server: Apache/2.0.41 (Unix) PHP/4.2.2 MyMod/1.2 
 
 开启目录浏览 
 
 
 
 
<Directory /webwww/wumashi/works>
                Options Indexes FollowSymlinks
</Directory>

相关文章:

  • 2022-12-23
  • 2021-10-27
  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-11-15
相关资源
相似解决方案