1. 程式人生 > >利用nginx 反向代理解決跨域問題

利用nginx 反向代理解決跨域問題

server { listen 8094; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { root html; index index.html index.htm; } location /apis { rewrite ^.+apis/?(.*)$ /$1 break; include uwsgi_params; proxy_pass http://localhost:1894; }