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/;
}
}
00
相似问题