http://wolfdream.iteye.com/blog/966903
http://www.oschina.net/question/140735_21411
目前对我很有用,学习
01 | server { |
02 | listen 80; |
03 | server_name hg. test .com; |
04 | location ~ \.(htm|html|gif|jpg|jpeg|png|ico|rar|css|js|zip|txt|flv|swf|doc|ppt|xls|pdf)$ { |
05 | root /var/data/ test /webapp; |
06 | access_log off; |
07 | expires 24h; |
08 | } |
09 | location / { |
10 | proxy_pass http://localhost:10010/; |
11 | include proxy.conf; |
12 | } |
13 | } |
我的配置:
location /resources {
root E:/bak;
}
location / {
proxy_pass http://localhost:8080/;
}