my( $host ) = @_;
my( @http_files ) = ( @{$HTTPDOCS{"ALL"}}, @{$HTTPDOCS{$host}} );
my( $http_port ) = $HTTPPORT{$host} || $HTTPPORT{"ALL"} || 80;
- my( @http_urls ) = ( @{$HTTPURLS{$host}} );
- @http_urls = (@{$HTTPURLS{'DEFAULT'}}) if ! @http_urls;
+ # Find list of URL's to check
+ my( @http_urls ) = @{$HTTPURLS{$host}} || # Old style configs
+ @{$HTTPURLS{'DEFAULT'}} ||
+ $HOSTS{$host}->{'http_urls'} || # New style configs
+ $HOSTS_DEFAULTS{'http_urls'};
+ # Append mandatory urls to check
+ @http_urls = ( @http_urls, @{$HOSTS_ALL{'http_urls'}} );
+
my( $file, $tmessage ) = ( "", "" );
my( $color, $summary ) = ( "green", "" );