• We have setup WP with apache to require Basic Authentication to access it at all.
    This is since users are part of an AD domain and there is a requirement to do so.

    It is a simple <RequireAny> block in the config, however I run into issues when checking site health.
    In particular, it gets a 401 error for such as REST API, which seems to affect loopback which then affects scheduled events.

    The site itself seems to be working fine and users have no complaints (so far).
    Is this something to ignore, or are there better ways/additional settings that could remedy this?

Viewing 1 replies (of 1 total)
  • Moderator threadi

    (@threadi)

    The reason for the error messages is that WordPress itself is trying to reach the REST API. This can also have a negative effect on individual functions, e.g. tasks that WordPress itself performs automatically. This is why there is also the warning in Site Health.

    You have 2 possibilities to solve this:
    a) You define an exception for /wp-json/ in the AuthBasic authentication you implemented.
    b) You use a WordPress plugin that supplements the AuthBasic authentication in WordPress instead of your manual supplement: https://ww.wp.xz.cn/plugins/tags/basic-authentication/

Viewing 1 replies (of 1 total)

The topic ‘htaccess for main auth’ is closed to new replies.