Can stand-alone Jetty be used as a reverse proxy (without Apache mod-proxy)

眉间皱痕 提交于 2019-12-07 01:02:55

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/20442798/can-stand-alone-jetty-be-used-as-a-reverse-proxy-without-apache-mod-proxy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!