IP Based Authorization on Apache With NGINX Proxy By admin on September 28, 2010 in Apache 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 Related posts: Zabbix – Monitor for Apache config errors Determine Apache Compile Settings Hide NGINX version Determine Apache Version FrontPage / Apache 2.2