记录下nginx简单的配置

154 阅读1分钟

server {

listen 8080; //监听端口

root /html //前端代码目录

location / { proxy_pass https://localhost:8080; //代理的地址 }

location ~ .(gif|jpg|png)$ { root /data/images; }

}

1png.png