How to restrict page access to certain IPs using Apache httpd 2.4 ?

Latest response

Hi Community,

Need your help for restricting page access from certain IPs. Followed the note: https://access.redhat.com/solutions/63048, but it didn't work for my apache.

I have VirtualHost and Location directive and wanted to allow 10.75.x.x IPs only to access the location http://..../ords. However, after set it and restarted apache/httpd, still able to see another IP accessing the http page.

I can confirm that I have both modules (authz_core / authz_host) loaded

[root@xxx]# httpd -f /etc/httpd/conf/httpd.conf -M | grep authz
authz_core_module (shared)
authz_dbd_module (shared)
authz_dbm_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_owner_module (shared)
authz_user_module (shared)

see blow:

Require ip 10.75
.... truncated....

Can someone please help out? Thanks

Responses