1.Nginx的配置文件
server {
listen 8080;
server_name localhost;
#charset koi8-r;
location / {
root html;
index index.html index.htm;
}
location /api/ {
proxy_pass http://ip;
}