Alex Guo
文章36
标签33
分类10
pcloud nginx映射配置

pcloud nginx映射配置

dev-admin

server {
    listen       80;
    server_name  dev-admin.pcloud.net;
    location / {
        proxy_pass http://localhost:7020;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}

###dev-login (网页前端)

server {
    listen       80;
    server_name  dev-login.pcloud.net;
    location / {
        # 内网
        proxy_pass http://localhost:7010;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}

dev-mall (网页前端)

server {
    listen       80;
    server_name  dev-mall.pcloud.net;
    location / {
        proxy_pass http://localhost:7030;
    }

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

dev-api (api zuul网关)

server {
    listen       80;
    server_name  dev-api.pcloud.net;
    location ~ {
        proxy_pass   http://localhost:7979;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}
本文作者:Alex Guo
本文链接:https://alexguo.net/2018/12/07/pcloud-nginx%E6%98%A0%E5%B0%84%E9%85%8D%E7%BD%AE/
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可