【发布时间】:2012-08-21 09:23:45
【问题描述】:
我正在尝试调试为什么我的 index.pl 文件会生成错误,但在 apache 的错误日志中没有任何记录。如何正确设置我的环境以查看发生了什么? 我不认为是文件权限的问题。
这是我使用 apache2 对 vhost 的配置:
<VirtualHost *:80>
ServerName test_perl
DocumentRoot /var/www/test
ErrorLog /var/www/test/error_test.log
LogLevel debug
<Directory />
AllowOverride All
Options All -Indexes +ExecCGI
AddHandler perl-script .pl
PerlHandler ModPerl::Registry
PerlSendHeader On
</Directory>
</VirtualHost>
这是 HTTP 响应:
HTTP/1.1 200 OK
Date: Sun, 26 Aug 2012 18:08:47 GMT
Server: Apache/2.2.22 (Ubuntu)
Content-Type: text/x-perl
没有身体。
但是当我使用命令行运行文件时,我可以看到错误。
谢谢。
【问题讨论】:
标签: apache logging error-handling mod-perl