的.htaccess:LOGLEVEL这里不允许 [英] .htaccess: LogLevel not allowed here

查看:457
本文介绍了的.htaccess:LOGLEVEL这里不允许的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想看看我的.htaccess文件的作品。我把LogLevel指令它,

I want to see how my .htaccess file works. I put a LogLevel directive in it,

<IfModule mod_rewrite.c>
LogLevel alert rewrite:trace3
...

但后来在我的httpd日志文件中,我看到:

But then in my httpd log file, I see:

.htaccess: LogLevel not allowed here

如何调试我的.htaccess文件?

How do I debug my .htaccess file?

感谢。

推荐答案

日志级别不会把这个配置在Apache的配置文件.htacesss文件的工作。

Log level will not work in .htacesss file put this config in apache config file.

您正在尝试的语法,我以为是Apache 2.4把它作为

The syntax you are trying, i assume is for apache 2.4 put it as

LogLevel warn mod_rewrite.c:trace4

这篇关于的.htaccess:LOGLEVEL这里不允许的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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