IP Based Authorization on Apache With NGINX Proxy

In the nginx config add:

proxy_set_header X-Real-IP $remote_addr;

In the apache config add:

SetEnvIf X-Real-IP 72.3.230.* is_admin=true
Allow from env=is_admin

Have a project or a problem?

Talk with a senior engineer for practical recommendations—no obligation.

Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.