Apache2-Translation
view release on metacpan or search on metacpan
t/011directives.t view on Meta::CPAN
ok t_cmp GET_BODY( '/ok.html' ), 'OK', n '/ok.html';
SKIP: {
skip "Need alias module", 1 unless( need_module( 'alias' ) );
ok t_cmp GET_BODY( '/alias/ok.html' ), 'OK', n '/alias/ok.html';
}
ok t_cmp GET_BODY( '/file/ok.html' ), 'OK', n '/file/ok.html';
SKIP: {
skip "Need cgi module", 2 unless( need_module( 'cgi' ) or need_module( 'cgid' ) );
ok t_cmp GET_BODY( '/cgi/script.pl' ), qr!^CGI/!, n '/cgi/script.pl';
ok t_cmp GET_BODY( '/cgi4/script.pl' ), qr!^CGI/!, n '/cgi4/script.pl';
}
ok t_cmp GET_BODY( '/perl/script.pl' ), qr!^mod_perl/!, n '/perl/script.pl';
ok t_cmp GET_BODY( '/perl4/script.pl' ), qr!^mod_perl/!, n '/perl4/script.pl';
t_client_log_warn_is_expected();
ok t_cmp GET_BODY( '/tsthnd' ), 'TestHandler', n '/tsthnd';
t/011directives.t view on Meta::CPAN
ok t_cmp GET_BODY( '/conf/2' ), '/', n '/conf/2';
ok t_cmp GET_BODY( '/conf/3' ), '/path', n '/conf/3';
SKIP: {
skip "Need proxy and proxy_http modules", 1 unless( need_module( ['proxy','proxy_http'] ) );
t_client_log_warn_is_expected();
ok t_cmp GET_BODY( '/proxy/path/info' ), '/path/info', n '/proxy/path/info';
}
SKIP: {
skip "Need cgi module", 2 unless( need_module( 'cgi' ) or need_module( 'cgid' ) );
t_write_file( $documentroot.'/.htaccess', "Options ExecCGI\n" );
t_client_log_error_is_expected();
ok t_cmp GET_RC( '/cgi2/script.pl' ), 500, n '/cgi2/script.pl';
t_start_error_log_watch;
my $body=GET_BODY( '/cgi3/script.pl' );
my @lines=t_finish_error_log_watch;
if(grep /\.htaccess: Option ExecCGI not allowed here/, @lines) {
warn "\n\n# WARNING: Your httpd is buggy.\n# See http://www.gossamer-threads.com/lists/apache/dev/327770#327770\n\n";
ok 1, n '/cgi3/script.pl';
t/conf/httpd.conf.in view on Meta::CPAN
DocumentRoot "@DocumentRoot@"
PidFile @t_pid_file@
ErrorLog @t_logs@/error_log
LogLevel debug
<IfModule mod_log_config.c>
TransferLog @t_logs@/access_log
</IfModule>
<IfModule mod_cgid.c>
ScriptSock @t_logs@/cgisock
</IfModule>
ServerAdmin @ServerAdmin@
#needed for http/1.1 testing
KeepAlive On
HostnameLookups Off
( run in 0.713 second using v1.01-cache-2.11-cpan-5735350b133 )