Skip to content

Instantly share code, notes, and snippets.

@X0nic
Created January 28, 2014 00:02
Show Gist options
  • Save X0nic/8659912 to your computer and use it in GitHub Desktop.
Save X0nic/8659912 to your computer and use it in GitHub Desktop.
nginx maintance
set $is_trusted_ip false;
if ($http_x_forwarded_for ~ "68\.148\.96\.174") {
set $is_trusted_ip true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment