nginx的80端口对应多域名访问多路径

如下配置:

server {
        listen       80;
        server_name www.无极剑圣.com;

        location / {
            root   home0;
            index  index.html index.htm;
        }
    }

server {
        listen       80;
        server_name www.无双剑姬.com;

        location / {
            root   home1;
            index  index.html index.htm;
        }
    }

废话我就不多说了

你可能感兴趣的:(nginx)