I am migrating from Apache 2.2 to 2.4, and would like to prefer the use of "Require" than the now discouraged use of Allow
, Deny
.
My question: How can I allow access from a set of IP addresses or ranges, by having one address/range per line in the configuration file?
With Apache 2.2, I used:
Order deny,allow
Deny from all
Allow from 2001:1000:2000::1/64
Allow from 1.2.3.4
Allow from 1.2.3.10
How would that translate to the new access control syntax?