Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 458
user2232387 Avatar asked Dec 07 '13 15:12

user2232387


People also ask

What is the difference between proxy and reverse proxy?

A traditional forward proxy server allows multiple clients to route traffic to an external network. For instance, a business may have a proxy that routes and filters employee traffic to the public Internet. A reverse proxy, on the other hand, routes traffic on behalf of multiple servers.

Is Apache a reverse proxy?

In addition to being a "basic" web server, and providing static and dynamic content to end-users, Apache httpd (as well as most other web servers) can also act as a reverse proxy server, also-known-as a "gateway" server.

What is reverse proxy with example?

A reverse proxy is a server that sits in front of web servers and forwards client (e.g. web browser) requests to those web servers. Reverse proxies are typically implemented to help increase security, performance, and reliability.


1 Answers

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

like image 180
jesse mcconnell Avatar answered Oct 01 '22 14:10

jesse mcconnell