Archive | September, 2010

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 Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post Print for later Bookmark in Browser Tell a friend

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

View Comments Continue Reading →

Hide NGINX version

For security reasons, if you want to configure nginx to hide it’s version in the server header just add: server_tokens off; Bookmark on Delicious Digg this post Recommend on Facebook share via Reddit Share with Stumblers Tweet about it Subscribe to the comments on this post Print for later Bookmark in Browser Tell a friend

For security reasons, if you want to configure nginx to hide it’s version in the server header just add:

server_tokens off;

View Comments Continue Reading →