server {
listen 80;
server_name localhost;
location ^~/add/user {
proxy_pass http://域名:端口/add/user;
}
location / {
root /data/webhtml;
nginx 解决跨域
原文:http://linuxnewstar.blog.51cto.com/6967359/1891352