mod_proxy_uwsgi - Apache HTTP Server Version 2.4

Apache HTTP Server Version 2.4

Apache > HTTP Server > Documentation > Version 2.4 > Modules

# Apache Module mod_proxy_uwsgi

Available Languages: en | fr

Description: | UWSGI gateway module for `mod_proxy`
Status: | Extension
Module Identifier: | proxy_uwsgi_module
Source File: | mod_proxy_uwsgi.c
Compatibility: | Available in version 2.4.30 and later

### Summary

This module requires the service of `mod_proxy`. It provides support for the UWSGI protocol.

Thus, in order to get the ability of handling the UWSGI protocol, `mod_proxy` and `mod_proxy_uwsgi` have to be present in the server.

### Warning

Do not enable proxying until you have secured your server. Open proxy servers are dangerous both to your network and to the Internet at large.

### Topics

- Examples

### Directives

This module provides no directives.

### Bugfix checklist

- httpd changelog
- Known issues
- Report a bug

### See also

- `mod_proxy`
- `mod_proxy_balancer`
- Comments

## Examples

Remember, in order to make the following examples work, you have to enable `mod_proxy` and `mod_proxy_uwsgi`.

### Simple gateway

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

The balanced gateway needs `mod_proxy_balancer` and at least one load balancer algorithm module, such as `mod_lbmethod_byrequests`, in addition to the proxy modules listed above. `mod_lbmethod_byrequests` 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
    </Proxy>

Available Languages: en | fr

## 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.