的Apache日志重写 [英] Log of Apache rewrites

查看:111
本文介绍了的Apache日志重写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了网页有重定向循环的错误。最有可能的,这是由于我的Apache重写配置。我以前也有这些问题,很难找到他们调试。是否有某种形式的日志,让我看看有什么请求被重定向到?

I'm getting a "webpage has a redirect loop" error. Most likely this is due to my Apache rewrite configuration. I've had these issues before, and find them hard to debug. Is there some sort of log that allows me to see what the request is being redirected to?

如果没有,你怎么调试Apache以高效的方式重写?

If not, how do you debug Apache rewrites in an efficient way?

推荐答案

您可以通过RewriteLog指令配置了mod_rewrite的日志文件。

You can configure mod_rewrite's log file via the "RewriteLog" directive.

例如:

RewriteLog "/usr/local/var/apache/logs/rewrite.log" 

有关详细信息,请参阅: HTTP://httpd.apache。组织/文档/ 2.0 / MOD / mod_rewrite.html#rewritelog

For more information, see: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog

另外一个链接,我发现自己回去是疯狂先进mod_rewrite的 - 大量的信息有哪些,你可能要离开藏匿以供将来参考。这在: http://www.askapache.com/htaccess/crazy-先进的mod_rewrite-tutorial.html

One other link I find myself going back to is "crazy advanced mod_rewrite" -- lots of info there which you may want to stash away for future reference. It's at: http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html

这篇关于的Apache日志重写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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