my( $host ) = @_;
my( @http_files ) = ( @{$HTTPDOCS{"ALL"}}, @{$HTTPDOCS{$host}} );
my( $http_port ) = $HTTPPORT{$host} || $HTTPPORT{"ALL"} || 80;
+
# 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'};
+ my( @http_urls ) = @{$HTTPURLS{$host}};
+ @http_urls = @{$HTTPURLS{'DEFAULT'}} if( ! @http_urls );
+ @http_urls = @{$HOSTS{$host}->{'http_urls'}} if( ! @http_urls );
+ @http_urls = @{$HOSTS_DEFAULTS{'http_urls'}} if( ! @http_urls );
+
# Append mandatory urls to check
@http_urls = ( @http_urls, @{$HOSTS_ALL{'http_urls'}} );