游戏开发者联盟

nginx把未定义子域名重定向到主域名

server {
    listen 80 default_server;
    server_name  www.ez168.net;

    if ($host != $server_name) {
      rewrite ^ $scheme://$server_name$request_uri permanent;
    }
}