Skip to content

Instantly share code, notes, and snippets.

@viko16
Created July 16, 2014 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viko16/b9d2e1cd8642f0dedb77 to your computer and use it in GitHub Desktop.
Save viko16/b9d2e1cd8642f0dedb77 to your computer and use it in GitHub Desktop.
nginx 禁止ip访问 只允许域名访问 #shell
#将ip访问重定向到域名
server{
listen 80 default_server;
server_name _;
rewrite ^ http://ca.sise.com.cn$request_uri?;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment