В последнем тесте попробуйте связать с BaseException, а не с Exception.
Чтобы ваша структура попробовала что-то вроде:
<test>
<or>
<regex binding="BaseException.Message" pattern="Request timed out."/>
<and>
<equal binding="Context.Request.ServerVariables['REMOTE_ADDR']" value="::1" type="String"/>
<regex binding="Exception" pattern="hello"/>
</and>
<regex binding="BaseException.Message" pattern="The remote host closed the connection."/>
</or>
</test>
Должно работать.Оберните все тесты в <or>
, затем все тесты, которые должны быть оба истинными, оберните в <and>
.