服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess
  3. 拒绝访问符号链接的源代码
Intereting Posts
nginx gzip启用,但不是gzip 我可以用最大(节stream)吞吐量生成I / O活动吗? 我如何删除本地pipe理员权限? 获取应用程序日志 命令在实例上失败 SSL站点在Apache和Ubuntu中不使用正确的IP 从一组负载平衡的Windows服务器传回同一组负载平衡的服务器 SaltStack:NamespacedDictWrapper对象没有属性 Centos Atomic 7 cloud-init静态networkingconfigurationNO DEFAULT GATEWAY KVM虚拟机无法访问IPv6网站 CentOS proftpd从1.3.1> 1.3.3升级 通过sqlservr.exe进程内存利用率高 我应该考虑什么来保护Windows上的SVN? 在DKIM密钥中弃用RSA-SHA-1? Apache VHOST:主机与IP Win7桌面无法访问networking共享,同时更新组策略导致GP失败

拒绝访问符号链接的源代码

我有foo/bar.txt应该是403,而且我也有foo-hashed/hash/bar.txt这是foo/bar.txt的符号链接,应该可以访问。 foo/.htaccess包含

 Order deny,allow Deny from all 

这是很好,但我不能让散列的文件可以访问。 我在foo尝试了各种各样的Options FollowSymLinks ,但是没有太大的成功。

  • 使用mod_rewriteredirect.htaccess的规则
  • Ganglia私人页面
  • 使用Apache mod_rewrite将主机重写到子文件夹,但redirect而不是重写
  • .htaccess只能redirect到首页?
  • 无法获得包含的CSS和JS文件被压缩

这是foo/.htaccess

 Order Deny,Allow Deny from All Allow from env=symlink 

这是foo-hashed/.htaccess

 SetEnv symlink=1 

编辑:这是一个工作的解决scheme。

  • Nginx,将所有resquestredirect到子文件夹中的单个index.php文件
  • 在上菜之前先使用varnish检查html静态
  • 如何在文件和子目录中启用Apache DIGEST Authentivation
  • Apache:由于可能的configuration错误,请求超出了10个内部redirect的限制 – WooCommerce
  • 阻止假的谷歌机器人
  • 如果匹配.htacces中的特定正则expression式,将页面redirect到410
  • Nginx htpasswd成功login后获得403
  • Apache对iis重写规则
  • 使用虚拟主机configuration通过httpd php应用程序pipe理IP访问控制
  • 打开deflate时,apache httpd mod_expires不起作用

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