server {
listen 9099;
servername localhost;
location / {
root D:/videotest/
index index.html index.html;
}
location /uvp/{
proxy_pass http://ip:端口/;
}
}
访问proxy_pass的接口时;在Ajax的URL中这样写,例如
http://localhost:9099/uvp/test/login;