我使用starman作为我的网络应用程序。Apache web服务器侦听端口8080。我想用starman重写一些像'/request'这样的请求到这个Apache web服务器。我试着找一些pm,但我发现很少有例子能帮到我。
发布于 2012-09-03 13:51:21
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;
};https://stackoverflow.com/questions/12241685
复制相似问题