nginx代理还是很有意思的,最近用tomcat作为后端,在ngnix.conf修改这样就行了:
location / {
root /xxx/webapps;
index index.jsp index.html index.htm;
proxy_pass http://xxx.xxx.com:8080;
}
同时可以用proxy缓存相关的图片。
work, study, life ..........
Thursday, March 26, 2009
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment