1.在nginx.conf改配置nginx
root :static的絕對路徑url
location:是後臺的第一個路徑文件server
location ~ /ActivityWeb/{ #rewrite /ActivityWeb//(.+) /$1 break; proxy_pass http://real_server; }ip
url: '/ActivityWeb/activityMessage/addMessage',get
server 後臺的ip和端口號it
2.點擊nginx啓動就能夠了io