当我在HTML :: Mason :: ApacheHandler
中sub handler {
my ($r) = @_;
$r->content_type('text/plain');
$r->print( 'YES' );
$r->log_error( $r->bytes_sent );
return 200;
}
我得到了页面:
OK
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.22 (Debian) Server at localhost Port 443
如何只在浏览器中打印“是”?
答案 0 :(得分:0)
我必须将app.controller('Test', function($scope, $filter,...){
}
添加到我的handler.pl
我必须更加注意并在出现问题时检查/var/log/apache2/error.log。
要使用自定义页面进行响应,我可以使用custom_response
use Apache2::RequestIO;
完整示例here