服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. apache 2.4 git httpd.conf
  3. 如何防止Apache 2.4在.git目录中提供文件?
Intereting Posts
如何确定服务器的最快位置? 连接到本地httpd服务器的外部网站路由 服务器负载高,没有使用CPU的进程? CUPS通过套接字打印非常慢 Ubuntuconfiguration键盘非互动 Exchange 2007重新安装 – OST 无法从solaris服务器发送邮件 apt:如何使用包标签进行search? configurationZeroconf广播多个名称 将驱动器添加到没有实现驱动器底板的Dell R710仅支持四个驱动器 使用Apache和mod_wsgi的HTTP 503错误 在Linux中监控每个用户的使用资源 Nginx基本authentication的具体位置 aws ecs在一个实例被排空和取消注册后不生成新的ec2实例 IIS用可选的查询string重写或添加默认值

如何防止Apache 2.4在.git目录中提供文件?

我试图使用下面的Apache代码,以防止在.git文件夹中的任何东西。 但是我仍然可以访问example.com/.git/config文件。

 <Directorymatch "^/.*/\.git/"> Order deny,allow Deny from all </Directorymatch> 

  • 2个Apache网站在不同的端口上
  • Mod安全性例外不起作用
  • apache2.conf vs mpm_prefork.conf的优先级
  • Mod_security排除不完全工作,仍然阻止CSS和图像
  • 在HTTP下载时奇怪的暂停(Apache)

Deny from all是Apache的旧版本2.2的语法。 Apache 2.4的相应表示法是:

 Require all denied 

有关更多语法更改,请参阅从2.2升级到2.4 。

  • 我在哪里可以得到Windows的php5apache2_4.dll?
  • 如何将安全更新应用到apache
  • Apache 2.4 + PHP-FPM + mod_fastcgi(设置PHP-FPM的问题)
  • 将站点从一台服务器切换到另一台服务器而不更改DNS
  • 工人MPM或Prefork?
  • 创build新的站点configuration时重新启动Apache
  • .htaccess errordocument禁用标题
  • 允许在.htaccess中使用文件指令
  • 升级到apache 2.4.9 opensssl错误SSL_get_srp_userinfo
  • Apache VirtualHosts不起作用

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy