有什么方法可以在 nginx 后面配置 jetty 但仅用于“活动内容”?
我对 jetty 和 nginx 都是新手。它们看起来很轻且性能很高。但我想配置 nginx 仅当请求由 servlet 处理时才将请求传递到 jetty。让 nginx 处理那些 .jpg、.css、.js 等。
我可以使用resin/tomcat + Apache 做到这一点,但找不到nginx+jetty。
编辑我在nginx wiki中找到了这一点
I'm new to both jetty and nginx. They seem lightweight and high performance. But I would like to configure nginx to pass request to jetty only when those are handled by a servlet. Letting nginx deal with those .jpg, .css, .js, and so on.
I can do that with resin/tomcat + Apache but can't find it for nginx+jetty.
EDIT I found exactly this in nginx wiki
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
stackoverflow 中的另一个问题可以给你一个设置 nginx 的方法。并且您为静态内容使用不同的路径:图像、js、css..
That another question in stackoverflow, could give you a way to setup nginx. And you use a different path for your static content: images, js, css..