nginx location 路径配置

用nginx 代理 tomcat ,
location 配置时想实现下面的跳转,应该怎么配置
当直接访问域名 www.xxxx.com 时跳转到nginx html下面的静态文件,
当访问域名后面带有action(www.xxxx.com/a/log )时跳转到tomcat 服务

http://blog.csdn.net/xyang81/article/details/51989079

自己写路径规则

他的太麻烦 直接改你的system32下的 etc/hosts/ 按格式改一下 前面是 ip 后面是 www.xxxx.com 就可以通过域名访问了