nginx多个域名解析一个服务器地址

 server_name www.linuxidc.com www.linuxidc.net;
  index index.html index.htm index.php;

用空格将域名隔开即可

你可能感兴趣的:(linux,服务器)