修改nginx.conf
proxy_pass http://127.0.0.1:8088/aoi/ 你重定向的位置
server {
listen 80;
server_name 127.0.0.1;
#charset koi8-r;
#access_log logs/host.access.log main;
location ^~/api/ { # 表示匹配前缀为api/后的请求
proxy_pass http://127.0.0.1:8088/api/;
}
location / {
root D:/yunsw/page;
index login.html;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
修改完 nginx -s reload 即可