服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess
  3. 拒绝访问符号链接的源代码
Intereting Posts
mdadm重新启动,数组缺失? 不能组装? 限制Hyper-V主机上的guest虚拟机数量 Nginxredirect和地理定位 如何运行更新Xenserver 6.5免费版 所有的邮件去gmail垃圾邮件(sendmail在centos)127.0.0.1的问题? 活动目录用户名string的规则 从Outlook文件夹中删除大量电子邮件Exchange 2010 RAID硬盘驱动器configuration性能 将端口80上的stream量redirect到未知mac的apache,以及某些mac的squid 在Win 2008服务器上安装iSeries Access for Windows时出错 为什么SPDY在Nginx 1.4.3中打破“Vary:Accept-Encoding”? 在Ubuntu上安装cURL Windows Server 2008 R2,没有互联网时间选项卡 不同邮件提供商的第四级域名PEC(邮件)服务器 sshd不会在启动时启动

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

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