1Perlbal::Manual::SelectUosre(r3)Contributed Perl DocumenPteartliboanl::Manual::Selector(3)
2
3
4
6 Perlbal::Manual::Selector - Configuring Perlbal as a virtual service
7 that maps onto other services
8
9 VERSION
10 Perlbal 1.78.
11
12 DESCRIPTION
13 How to configure a Perlbal "selector" service.
14
15 READ ME FIRST
16 Please read Perlbal::Manual::Configuration first for a better
17 explanation on how to configure Perlbal. This document will make much
18 more sense after reading that.
19
20 Configuring Perlbal as a Selector
21 The "selector" role allows you to create a service that selects to
22 which other service a request should be sent to.
23
24 Here's an example of how to do that with the help of
25 Perlbal::Plugin::VHosts:
26
27 LOAD vhosts
28
29 CREATE SERVICE selector_service
30 SET listen = 0.0.0.0:80
31 SET role = selector
32 SET plugins = vhosts
33
34 VHOST *.site1.com = service1
35 VHOST *.site2.com = service2
36 ENABLE selector_service
37
38 In this case, requests to both "site1" and "site2" are received by
39 "selector_service", which then sends requests for "site1" to "service1"
40 and requests for "site2" to "service2".
41
42 Depending on your needs, you may want to use an existing plugin (e.g.,
43 Perlbal::Plugin::Vhosts, Perlbal::Plugin::VPaths) or create your own
44 (see "selector" under Perlbal::Manual::Plugins).
45
46 SEE ALSO
47 Perlbal::Manual::Configuration, Perlbal::Manual::Management,
48 Perlbal::Manual::Plugins, Perlbal::Plugin::Vhosts,
49 Perlbal::Plugin::VPaths.
50
51
52
53perl v5.34.0 2021-07-21 Perlbal::Manual::Selector(3)