【发布时间】:2012-10-04 14:02:03
【问题描述】:
我的 magento 商店在 htaccess 中有这个:
## TRACE and TRACK HTTP methods disabled to prevent XSS attacks
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* - [L,R=405]
我想记录我的 htaccess 进程中发生的事情。我已尝试添加此代码:
RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 2
但是当我使用 RewriteLog 行运行它时,我收到“内部服务器错误”或 Not Found 错误。
任何提示/帮助?
谢谢!
【问题讨论】:
-
您不能在 .htaccess 文件中使用
RewriteLog和RewriteLogLevel。 -
从 httpd.conf 设置日志文件,您可以在您的商店中激活 debbuging 以了解 magento 后面在做什么。检查这个redlightblinking.com/blog/magento-tutorials/…
-
Gumbo:那我该怎么办?我在 GoDaddy Linux 服务器中,我认为我无法访问 httpd.conf。 MMU:商店调试很有用,但在这种情况下没有用,因为问题出在服务器端(在 Magento 之前)。
标签: apache .htaccess magento logging trace