用nginx 代理 tomcat ,
location 配置时想实现下面的跳转,应该怎么配置
当直接访问域名 www.xxxx.com 时跳转到nginx html下面的静态文件,
当访问域名后面带有action(www.xxxx.com/a/log )时跳转到tomcat 服务
nginx location 路径配置
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
用nginx 代理 tomcat ,
location 配置时想实现下面的跳转,应该怎么配置
当直接访问域名 www.xxxx.com 时跳转到nginx html下面的静态文件,
当访问域名后面带有action(www.xxxx.com/a/log )时跳转到tomcat 服务