server { listen 8114; server_name _; # 匹配所有主机名 location / { root /PropertyApp; index index.html index.htm; } location /callComponent { add_header 'Access-Control-Allow-Origin' '*'; proxy_pass http://micro-community-web:8111; } location /aba-call-back { add_header 'Access-Control-Allow-Origin' '*'; proxy_pass http://micro-community-web:8111; } location /app { add_header 'Access-Control-Allow-Origin' '*'; proxy_pass http://micro-community-web:8111; } location /h5 { add_header 'Access-Control-Allow-Origin' '*'; proxy_pass http://micro-community-web:8111; } }