the dist directory after the front end packages the files of vue, and then uses nginx reverse proxy. The ajax framework uses axios
nginx configuration
// node.jsjson
location /style {
proxy_pass http://localhost:8888;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
// 200phpjsonp
// rewrite404
location /Webapi {
rewrite ^/Webapi/?(.*)$ /$1 break;
add_header backendIP $upstream_addr;
add_header backendCode $upstream_status;
proxy_pass http://testadmin.w-lans.com;
}
request and response information