服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess
  3. 拒绝访问符号链接的源代码
Intereting Posts
安装窗口服务器2012 R2 – 在分区磁盘选项下 (svn + ssh)让bash通过SSH加载我的PATH 服务器攻击,但上传不下载 IIS 7:使用不同站点的IP地址和端口 如何在Exchange 2010 EMS中显示禁用/启用状态 o2cb认为ocfs2集群仍在线,并拒绝closures 厨师bash资源不作为指定的用户执行 如何使网站无法访问的IP? Get-ADUser -Properties MemberOf不返回任何内容 oracle – 将所有权限授予模式 Apache mod_rewrite在redirect时对查询string进行双重编码 Nginx透明IP – 通过负载均衡器路由服务器响应,而不是直接到客户端 Fail2Ban正则expression式匹配这些行? 活动目录,对用户的控制 在centOS上的OpenSSL响应404问题6

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

我有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