Justhost空间出现406错误解决办法
三月 13, 2010 by admin · Leave a Comment
在安装新风格设置边栏的时候出现406 Not Acceptable 错误!尝试所有办法也试过重新安装~连装的过程都出现这个问题!
在网上搜遍了所有解决的办法都没有搞定!
当中也有可能是因为用的是GBK版··试过用UTF版可以安装~但是换编码太麻烦了~究竟是不是因为国外空间对编码的支持问题暂时也不清楚!
以我购买的空间为例:
406 Not Acceptable
An appropriate representation of the requested resource / could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
如果访问你使用Justhost的空间,访问你的网页,出现上面的错误就是这个原因了。因为Justhost的服务器为了您的网站安全,在所有的共享服务器上安装有Apache的一个MOD叫作Mod security,就是因为这个MOD,当网址中包含有“%”号等其它敏感字符的时候,就会被 Mod security 阻挡,导致 406 Not Acceptable 错误,因为Justhost的服务器都是使用的最新版的 Mod security,在原来的老版本中,也可使用.htaccess控制 Mod security 的一些选项,新版中没办法使用.htaccess控制了,只能联系他们的技术支持将你的网址加入白名单内,下面我提供一个邮件样板:
Hello, I am sorry to bother you! I hope you can help me disable the Mod security for this domain: ???.com, my cpanel account name is ???. Because my URL must contain the characters "%", but the Mod security led to the error, thanks very much!
请将上面的邮件发送到 support@justhost.com 即可,千万不要忘了把上面的???替换成你自己的域名和Cpanel登录的用户名。Justhost的服务做得不错,一般会在半个小时内得到回复!这个是通过Live Chat解决不了的,只能发邮件!