server { listen 90; server_name localhost; add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; location / { root /home/xydl/jkpg/static; index index.html; } location /jkpg-api/ { proxy_pass http://127.0.0.1:8080/; } location /data/sftp/picbak { root /; index index.html index.htm; } location /api/sysLoginRemoteController/login { proxy_pass http://192.168.50.200:8080/sysLoginRemoteController/login; } location /api/modelFile/ { proxy_pass http://192.168.50.200:8022/; } }