名前

Perlbal::Manual::Selector - 他のサービスへマップする仮想サービスとしてPerlbalを設定

バージョン

Perlbal 1.78.

説明

Perlbalの selector サービスを設定する方法。

最初に

Perlbalを設定するより良い説明としてまず the Perlbal::Manual::Configuration manpage を読んでください。このドキュメントはそれを読んだ後でもっと理解できるでしょう。

セレクターとしてPerlbalを設定する

selector role によりどの他のサービスにリクエストが送信されるべきかを選択するサービスを作成することができます。

the Perlbal::Plugin::VHosts manpageの助けによってどうやるかの例があります:

    LOAD vhosts
    CREATE SERVICE selector_service
      SET listen         = 0.0.0.0:80
      SET role           = selector
      SET plugins        = vhosts
      VHOST *.site1.com  = service1
      VHOST *.site2.com  = service2
    ENABLE selector_service

この場合、site1site2 の両方は、 selector_serviceによって受け取られます。そして、 site1 へのリクエストは service1へ、 site2 へのリクエストは service2 へ送信されます。

必要によって、既存のプラグイン(例えば、 the Perlbal::Plugin::Vhosts manpage, the Perlbal::Plugin::VPaths manpage)を使いたい、あるいは、新しく作成 (selector under the Perlbal::Manual::Plugins manpageを見てください)したいかも知れません。

参照

the Perlbal::Manual::Configuration manpage, the Perlbal::Manual::Management manpage, the Perlbal::Manual::Plugins manpage, the Perlbal::Plugin::Vhosts manpage, the Perlbal::Plugin::VPaths manpage.

TOP
inserted by FC2 system