服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. .htaccess
  3. 拒绝访问符号链接的源代码
Intereting Posts
Ubuntu服务器DNS服务器 Cron不可用,请改用? MAC过滤会增加Wifi安全性吗? Linux使用4.4 BSD风格路由吗? pipe理员密码已更改,需要还原 OSX 10.6思科IPSEC奇怪的行为 共享文件夹上的权限inheritance问题 – Windows Server 2003 简单的文件共享故障转移 amavis如何与spamassassin谈话? 尝试在CentOS 7上镜像传统的PHP 5.3.29应用程序(奇怪,我知道!) apache2 mod_rewrite启用,但不能正常工作 Windows 10:两个用户同一个configuration文件文件夹 Foreman / RH Satellite的最低权限AWS IAM策略,用于全面pipe理EC2计算资源 IIS7.5中服务器级别和站点级别的function有什么区别? .pid文件是否可靠用于确定进程是否正在运行?

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

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