nginx反向代理: [emerg] invalid number of arguments in

server {listen       80;server_name  localhost:8080;#charset koi8-r;#access_log  logs/host.access.log  main;location / {#root   html;# index  index.html index.htm;# proxy_pass    http://localhost:8080;}location ~ \.jsp$ {proxy_pass http://localhost:8080;}location ~ \.(html|js|css|png|gif)$ {root D:/Program Files/tomcat/webapps/ROOT;}

windows下只需要在 路徑兩邊加雙引號即可。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章