RewriteLog triggers Internal Server Error

后端 未结 3 347
悲&欢浪女
悲&欢浪女 2021-01-11 20:23

I am trying to do some debuging on my rewrite rules and wanted to enable RewriteLog to view how they are interpreted.

but when i activate it i get Internal Server Er

相关标签:
3条回答
  • 2021-01-11 20:45

    You should post whole string from apache log file to be sure, but i suspect that you've tried to add this string in .htaccess and it gives you error "you can't have rewrite log directive here".

    P.s. it's

    RewriteLog "/home/solomongaby/www/project/logs/rewrite.log"
    

    and not

    RewriteLog "/home/solomongaby/www/project/logs/rewrite.log
    

    Right?

    0 讨论(0)
  • 2021-01-11 20:54

    It's most likely a permissions issue. Check Apache's error.log file.

    0 讨论(0)
  • 2021-01-11 20:56

    The RewriteLog directive is only allowed in the server or virtual host configuration (see Context value).

    0 讨论(0)
提交回复
热议问题