nginx.conf配置文件内容:
1.在http {}中添加以下内容
server {
listen 8088;
server_name www.wfeifei.com;
#-----静态文件访问路径 通过代理来访问静态资源文件----
location /{
root /www/dist;
}
#----接口映射-------
location /AC/ {
proxy_pass https://www.wfeifei.com;
proxy_set_header Host $host:$server_port;
}
}
2.将打包后的静态资源放置在以上配置的路径中



