Apache HTTP Server Version 2.4 (original) (raw)

top

Examples

Remember, in order to make the following examples work, you have to enable [mod_proxy](../mod/mod%5Fproxy.html) and [mod_proxy_uwsgi](../mod/mod%5Fproxy%5Fuwsgi.html).

Simple gateway

ProxyPass "/uwsgi-bin/" "uwsgi://localhost:4000/"

The balanced gateway needs [mod_proxy_balancer](../mod/mod%5Fproxy%5Fbalancer.html) and at least one load balancer algorithm module, such as[mod_lbmethod_byrequests](../mod/mod%5Flbmethod%5Fbyrequests.html), in addition to the proxy modules listed above. [mod_lbmethod_byrequests](../mod/mod%5Flbmethod%5Fbyrequests.html) is the default, and will be used for this example configuration.

Balanced gateway

ProxyPass "/uwsgi-bin/" "balancer://somecluster/" <Proxy balancer://somecluster> BalancerMember uwsgi://localhost:4000 BalancerMember uwsgi://localhost:4001

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our mailing lists.