可以将独立的Jetty用作反向代理(无需Apache mod-proxy) [英] Can stand-alone Jetty be used as a reverse proxy (without Apache mod-proxy)

查看:218
本文介绍了可以将独立的Jetty用作反向代理(无需Apache mod-proxy)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含Jetty Web服务器的应用程序,我们将其分发给多个用户以部署在他们的服务器上.基于一些新要求,我们需要包括反向代理功能. Jetty文档讨论了使用Apache作为Jetty前面的反向代理.尽管这可行,但仅使用Jetty而不是随身携带Apache会容易得多.有什么方法可以将独立Jetty配置为反向代理?

I have an application which includes a Jetty web server that we distribute to multiple user to deploy on their servers. Based on some new requirements, we need to include reverse proxy capabilities. The Jetty documentation talks about using Apache as the reverse proxy in front of Jetty. While this works, it would be much easier to just use Jetty and not have to carry around Apache. Is there any way to configure standalone Jetty as a reverse proxy?

推荐答案

确保您应该能够使用完全异步并且可以根据需要进行自定义的ProxyServlet:

Sure you should be able to use the ProxyServlet which is fully async and quite customizable if needed:

http://www.eclipse.org/jetty/documentation/current/proxy-servlet.html

这篇关于可以将独立的Jetty用作反向代理(无需Apache mod-proxy)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆