宗小宗-PHP程序猿

欢迎各位朋友前来,如果我的文章中有不对的地方,还望指正;如需转载,请注明原处

Nginx将通过IP访问重定向


server {
  listen 80 default_server;
  server_name localhost;
  location / {
    rewrite ^ http://www.xxx.com/?from-xxx;
  }
}

posted @ 2016-04-02 12:40  宗小宗  阅读(2473)  评论(0编辑  收藏  举报