The directives provided by mod_access_compat have been deprecated by mod_authz_host. Mixing old directives like Order, Allow or Deny with new ones like Require is technically possible but discouraged.
It seems legacy variant does not work with Require all denied set for / in default httpd configuration on CentOS-8
Please, consider using
instead of legacy
in apache configuration
Notice https://httpd.apache.org/docs/2.4/mod/mod_access_compat.html
It seems legacy variant does not work with
Require all denied
set for/
in default httpd configuration on CentOS-8