Nginx配置:

worker_processes  1;
events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;

    server {
        listen       80;
        server_name  loginpage.qiyuan.run;

        location / {
            root   loginpage;
            index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }

    server {
        listen       80;
        server_name  music.qiyuan.run;

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

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
}

项目目录位置,和Nginx默认的HTML目录同级:(也可以不同级,只要与nginx.conf文件中配置相呼应即可)

1638758917034.png

阿里云解析记录:

1638758963635.png