(63)文件名太长:无法访问/xyz引用人:www.mydomain.com [英] (63)File name too long: access to /xyz failed referer:www.mydomain.com

查看:100
本文介绍了(63)文件名太长:无法访问/xyz引用人:www.mydomain.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我在我的网址中启用了加密.它对于95%的网址正常工作.但是在仅使用分页的某些页面中,我得到403错误.当我检查apache错误日志时,出现了此错误.我正在使用Yii框架,apache 2.2,PHP 5.3.任何想法吗?

Recently I have enabled encryption in my urls.It worked fine for 95% urls.But in only some pages using pagination I'm getting 403 error.When I checked apache error log,I got this error.I'm using Yii framework,apache 2.2,PHP 5.3.Any Idea?

(63)File name too long: access to  /xyz failed referer:www.mydomain.com

推荐答案

这是Apache2中的限制

This is a limitation in Apache2

确保2个斜杠之间的字符不要超过255个字符.

Make sure your anything between 2 slashes is not longer then 255 characters.

当参数/文件名的长度超过255个字符时,Apache将根据您的文件系统限制进行检查.

When you have an argument/filename longer then 255 chars, Apache will check this against your file system limits.

有关最大文件名长度的信息,可以在这里找到: http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits

Info on the max filename length can be found here: http://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits

其中没有很多文件允许更长的文件名,因此您必须将它们缩短,而没有其他办法.

There aren't a lot of them that allow for longer file names, so you will have to make them shorter, no other way around them.

如果您确实需要用超过255个字符进行加密的Urls,建议使用Mod-Rewrite + Yii UrlManager在多次启动时加入参数,或者将您的加密算法限制为使用少于255个字符进行加密.

If you really need Urls encrypted with more than 255 characters suggest using Mod-Rewrite + Yii UrlManager to break into arguments over multiple splashes, alternatively restrict your encryption algorithim to encrypt with less than 255 characters.

这篇关于(63)文件名太长:无法访问/xyz引用人:www.mydomain.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆