2015-01-19 5 views

답변

1
server { 
    listen 80; 
    server_name .example.com; 

    location /list/ { 
     if ($host !~ ^(xxx|yyy|zzz)\.example\.com) { 
      return 301 http://demo.example.com/list/; 
     } 
     # .... 
    } 
}