apache2uwsgiapache2-module

How to compile mod_proxy_uwsgi or mod_uwsgi?


So I'm trying to use uwsgi behind apache2, but I am doing so on a CentOS 6 machine. (I'm use to Debian/Ubuntu based systems for context.)

I used pip install uwsgi and followed the directions for launching uwsgi with a Django application (via http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html).

I started to configure apache2 as per http://uwsgi-docs.readthedocs.org/en/latest/Apache.html, but it says nothing about where to get or how to build mod_uwsgi or mod_proxy_uwsgi. mod_uwsgi.so definitely isn't on the system anywhere. Any suggestions?


Solution

  • It's right at the top of the module's source:

    To build:
    
    apxs2 -i -c mod_proxy_uwsgi.c
    

    Apxs2 is apache-2.2 specific, and it may be called apxs on some Unixes. For instance, on CentOS 6:

    $ rpm -q -f `which apxs`
    httpd-devel-2.2.15-28.el6.centos.x86_64