windows前端部署

来源:6-27 前端代码打包与部署

qq_终于等到你_1

2021-02-21

图片描述如图修改nginx配置文件后,打开127.0.0.1:8882显示404not found .

Goland显示我访问的是一个ico文件图片描述图片描述

写回答

1回答

慕斯1088534

2021-02-26

wins10 环境下我是懒的安装Nginx了,直接用phpstudy_pro 里面自带的Nginx配置通过,运行成功;

nginx.conf 配置如下:

server {

        listen       8882;

        server_name  localhost;

        root E:/Software3/phpStudy/WWW/golang/go_gateway_view_demo/dist;

        index index.html index.htm index.php;

        location / {

            try_files $uri $uri/ /index.html?$args;

        }

        location /prod-api/ {

            proxy_pass http://127.0.0.1:8880/;

        }

    }


0
0

(打造简历金牌项目)Vue+Go 开发企业级微服务网关项目

简历中摒弃烂大街的培训机构项目,带你开发企业级微服务网关

1316 学习 · 352 问题

查看课程