Can the Play Framework act as a proxy server or as a reverse proxy server?

I have a client: C , server: S (for example, on local ip 10.0.0.1 on port 7000) and a web server: W (for example, www.example.com)

C wants to contact S via the web path: http://www.example.com/path_for_server_S

So W acts like a forward proxy

Now S will contact C in the same way: http://www.example.com/path_for_server_S

So now W acts like a Reverse Proxy

Then in Apache it will be a general configuration similar to this:

ProxyPass /path_for_server_S http://10.0.0.1:7000 ProxyPassReverse /path_for_server_S http://10.0.0.1:7000 

Is it possible for a playback platform that already has a built-in web server to handle this situation?

I searched a lot, did not find anything about this :)

+6
source share
1 answer

You could, of course, write the proxy component manually in any modern web environment, initiate an HTTPS request from the controller, and then pass the result back to the response.

I would be surprised if you had Nginx level performance.

0
source

Source: https://habr.com/ru/post/925543/


All Articles