System: Clean install of Centos 7.6.1810
Clean install of virtualmin installed using install.sh
Apache version: yum info httpd Installed Packages Name : httpd Arch : x86_64 Epoch : 1 Version : 2.4.6 Release : 89.el7.vm Size : 9.4 M Repo : installed From repo : virtualmin Summary : Apache HTTP Server URL : http://httpd.apache.org/ License : ASL 2.0 Description : The Apache HTTP Server is a powerful, efficient, and extensible : web server.
Mod_authz_host docs: https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html
I'm trying to use the "Require forward-dns" that was added back in apache 2.4.19, but anytime I try to use it I get the following 500 error: [Tue Jul 30 19:37:53.713103 2019] [core:alert] [pid 8100] [client xxx.xx.xxx.xxx:57826] /home/domain.com/public_html/.htaccess: Unknown Authz provider: forward-dns
mod_authz_host module is installed and working, and confirmed by using "Require host" in .htaccess, which works and has the expected results.
I know the DNS lookups are working, since Require host first does a reverse DNS lookup on the host, then does a forward DNS lookup on the host returned by the original reverse DNS request. So it appears based on the error, that forward-dns is not enabled in the 2.4.6 build shipping with the virtualmin repo.
It's either that, or I'm missing something in the docs. But if that feature is missing from the 2.4.6 build shipping in the virtualmin repo, I'm wondering if it's missing in the upstream centos apache build as well, or when apache is being compiled for the virtuilmin repo, is the version not actually 2.4.6?
For the life of me, I can't figure out why forward-dns isn't working. And even at debug log level, apache isn't giving any extra info other than "unknown Authz provider: forward-dns"
Has anyone been able to get forward-dns to work?