How to debug Apache mod_rewrite

后端 未结 5 1310
不思量自难忘°
不思量自难忘° 2020-11-22 04:56

I have two main problems with mod_rewrite:

1) There is no meaningful error reported when I have an invalid rule

5条回答
  •  旧时难觅i
    2020-11-22 05:14

    The LogRewrite directive as mentioned by Ben is not available anymore in Apache 2.4. You need to use the LogLevel directive instead. E.g.

    LogLevel alert rewrite:trace6
    

    See http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#logging

提交回复
热议问题