如何将星际战士请求代理到Apache



我的网络应用程序使用starman。Apache web服务器在端口8080上侦听。我想在starman中重写一些像'/request'这样的请求到这个Apache web服务器。我试图找到一些pm,但我找到了一些例子来帮助我。

Plack::App::Proxy允许您代理到您的App.psgi中的另一个web服务器。修改自简介:

use Plack::Builder;
# proxy all requests for /request to 127.0.0.1:8080
builder {
    mount "/request" => Plack::App::Proxy->new(remote => "http://127.0.0.1:8080")->to_app;
};

最新更新