使用amh.conf 或重新创建一个test.conf配置文件 。保存目录 /usr/local/nginx/conf/rewrite例如跳到 www.shuaixingkeji.com
if ($host = 'shuaixingkeji.com') {rewrite ^/(.*)$ http://www.shuaixingkeji.com/$1 permanent;}
回到面板编辑主机配置,Rewrite规则选择test.conf,回到home页面点重启nginx即可。