Httpd mod proxy Installation: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 20: Line 20:


<blockquote style="background-color: Gold; border: solid thin Goldenrod;">
<blockquote style="background-color: Gold; border: solid thin Goldenrod;">
:<br>The trailing slash on the balancer URL (in this case "balancer://mycluster/") is important so that the URLs are properly resolved while being proxied. Note that without a training slash, if the "/example" is requested, the URL will become "balancer://myclusterexample". No such balancer exists, and the request will fail. With the trailing slash, it'd resolve as "balancer://mycluster/example", which will correctly locate the balancer.
:<br>The trailing slash on the balancer URL (in this case "balancer://mycluster/") is important so that the URLs are properly resolved while being proxied. Note that without a training slash, if the "/example" is requested, the URL will become "balancer://myclusterexample". No such balancer exists, and the request will fail. With the trailing slash, it'd resolve as "balancer://mycluster/example", which will correctly locate the balancer.<br><br>
<br><br>
</blockquote>
</blockquote>


=Specify the Balancer Topology and Configuration=
=Specify the Balancer Topology and Configuration=

Revision as of 18:21, 8 December 2016

Internal

Overview

Load the Modules

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

For a list of required modules and an explanation of how they work together, see "mod_proxy Modules and How they Work Together" section.

Declare the Balancer Worker


The trailing slash on the balancer URL (in this case "balancer://mycluster/") is important so that the URLs are properly resolved while being proxied. Note that without a training slash, if the "/example" is requested, the URL will become "balancer://myclusterexample". No such balancer exists, and the request will fail. With the trailing slash, it'd resolve as "balancer://mycluster/example", which will correctly locate the balancer.

Specify the Balancer Topology and Configuration