views:

10

answers:

1

Apache allows to apply certain configuration using FileMatch, Location and the rest. Is it possible to apply a certain configuration using IP as a condional

Something like this:

# some rules here.

A: 

SetEnvIf can check for the IP address, and then you have several options for things you can do with the environment variables once they're set.

Basic access control (allow and deny) and mod_rewrite can also work with IP addresses directly.

Josh Kelley