`
eimhee
  • 浏览: 2106139 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Use 'LimitInternalRecursion' to increase the limit if necessary

 
阅读更多

 

今天查看APACHE日志发现了大量的这样的错误


[Sat Jan 12 06:33:25 2013] [error] [client ] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

发了很长时间才找到原因,

.htaccess 这个文件是有继承性的,

我的网站目录是放在/opt/www

子域名是放在/opt/www/image/

这样子域名会继承根目录的.htaccess

 

解决方法就是创建一个链接文件夹 ln -s /opt/www/image/

修改 vi /etc/apache2/sites-available/default

  DocumentRoot /opt/image
        <Directory /opt/image>
                Options -Indexes FollowSymLinks ExecCGI
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

 

0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics