microsoft / CSS-Exchange

Exchange Server support tools and scripts
MIT License
1.22k stars 340 forks source link

URL Rewrite Rule wrong match property - Health Checker #2024

Open Apoc70 opened 7 months ago

Apoc70 commented 7 months ago

Provide Version Number 24.02.15.1640

Describe the issue The script reports the IIS URL Rewrite Property for Exchange Server 2016 as just "", but the configured MatchPattern is "."

Expected behavior The script should report the MatchProperty correctly.

Script Output

        RewriteRuleName       Pattern                                 MatchProperty  ActionType      
        ---------------       -------                                 -------------  ----------      
        RequestBlockingRule1  .*autodiscover\.json.*\@.*Powershell.*  url - *        CustomResponse  

    Misconfigured URL Rewrite Rule - URL Match Problem Rules: RequestBlockingRule1
        URL Match is set only a wild card which will result in a HTTP 500.
        If the rule is required, the URL match should be '.*' to avoid issues.

Additional context See attached screenshot. image

dpaulson45 commented 7 months ago

@Apoc70 the rule in the screen shot is not the same rule the script is calling out.

This could be related to #2003