1。配置域名指向本服务器IP;2、在nginx中配置两台服务器(两个端口都是:80)。找到nginx.conf文件,修改:vi/usr/local/nginx/conf/nginx.conf添加服务器,如下图:nameprofilelistenportserver_namebinddomainnamelocation/rootfilepathlocation/index默认主页

1。配置域名指向本服务器IP;2、在nginx中配置两台服务器(两个端口都是:80)。找到nginx.conf文件,修改:vi/usr/local/nginx/conf/nginx.conf添加服务器,如下图:nameprofilelistenportserver_namebinddomainnamelocation/rootfilepathlocation/index默认主页