。
我正在尝试设置此设置: https://github.com/oprel/eprel/emanon 每次我尝试运行帖子
[Sat Jul 02 13:03:13.380647 2022]
/fs5d/9kun/public/board/.htaccess: Invalid command 'Deny', perhaps misspelled or
defined by a module not included in the server configuration
。
<FilesMatch "\.(txt|pm)$">
deny from all
</FilesMatch>
但是 我应该怎么办??我用CGI运行Apache。
i'm trying to set up this: https://github.com/oprel/emanon
But everytime i try to run post.cgi i receive this error on the error log:
[Sat Jul 02 13:03:13.380647 2022]
/fs5d/9kun/public/board/.htaccess: Invalid command 'Deny', perhaps misspelled or
defined by a module not included in the server configuration
The 'Invalid command' is from .htaccess:
<FilesMatch "\.(txt|pm)quot;>
deny from all
</FilesMatch>
Lines 3,4,5
What should i do?? I run apache with cgi.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我希望您在Apache 2.4上
deny
是Apache 2.2(及以前)指令,以前在Apache 2.4上弃用,并(从A base 模块)移动到MOD_ACCESS_COMPAT(可选扩展)。此模块可能未启用,因此错误。您应该在Apache 2.4上使用相应的
requient
指令。例如:参考:
I would expect you are on Apache 2.4
Deny
is an Apache 2.2 (and earlier) directive and is formerly deprecated on Apache 2.4 and moved (from a base module) to mod_access_compat (an optional extension). This module is probably not enabled, hence the error.You should be using the corresponding
Require
directive on Apache 2.4 instead. For example:Reference:
问题是您根本不订购该语句,因此Apache不知道您是否要拒绝或允许。在下面尝试一下...
The problem is that you are not ordering the statement at all, therefore Apache has no idea whether you want to deny or allow it. Try this below...