Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 404 status for MS 365 autodiscover requests and omit log entries #314

Open
tormi opened this issue Sep 20, 2022 · 2 comments
Open

Add 404 status for MS 365 autodiscover requests and omit log entries #314

tormi opened this issue Sep 20, 2022 · 2 comments

Comments

@tormi
Copy link
Member

tormi commented Sep 20, 2022

Sth like this:

nginx:
  extra_conditions: |
    # 404 status for MS 365 autodiscover requests and omit log entries
    location ~ /autodiscover/autodiscover.xml {
      return 404;
      access_log off;
      log_not_found off;
    }

Slack: https://wunder.slack.com/archives/C8UN6AG9W/p1647591467861449

@tormi
Copy link
Member Author

tormi commented Sep 22, 2022

Saimons Jēgers:

Actually in Artis copied text both use cases say that it’s used for case-insensitive scenarios which doesn’t look right.
It’s a typo on that blog/site. Link to it
And this is just above the text:

~: The tilde sign is used for case-sensitive regular expression match against a requested URI.
~*: The tilde followed by asterisk sign is used for case insensitive regular expression match against a requested URI.

So it should be ~* after all.

@tormi
Copy link
Member Author

tormi commented Sep 23, 2022

This should be the correct one:

  locationExtraConfig: |
    # Add 404 status for autodiscover.xml requests and omit log entries.
    location ~* /autodiscover/autodiscover.xml {
      return 404;
      access_log off;
      log_not_found off;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant