3

Let's say I have a Flask app running. When someone goes to any page, or makes any sort of request on the page, I want that request to be copied to another Flask app. Is there an already existing Flask plugin that would allow me to do so?

By copy I mean this:

My app is test.com. I have another Flask app running on a private machine on a private IP. When I get a GET request on test.com, I want the same GET request to be sent to the Flask app on the private app.

4

1 回答 1

3

正如其他人在评论中所说,最好的代理是您的 Web 服务器提供的代理。但是有时您实际上需要您的 Web 应用程序来执行代理,在这种情况下,请参阅以下答案:Proxying to another web service with Flask

于 2013-02-19T06:56:01.447 回答