Uwsgi + apache – Invalid command ‘uWSGISocket’, perhaps misspelled or defined by a module not included in the server configuration

apache-2.2uwsgi

I have this error:

Invalid command 'uWSGISocket', perhaps misspelled or defined by a
module not included in the server configuration

<VirtualHost *:80>
    ServerAdmin your@email.com
    ServerName voorloopnul.com
    ServerAlias www.voorloopnul.com

    DocumentRoot /var/www

    <Directory />
        Options FollowSymLinks Indexes
        AllowOverride None
    </Directory>

    <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

    <Location />
        Options FollowSymLinks Indexes
        SetHandler uwsgi-handler
        uWSGISocket 127.0.0.1:3031
    </Location>

   <Location /static>
        SetHandler none
   </Location>

    Alias /static //srv/apps/voorloopnul/voorloopnul/static/

    ErrorLog ${APACHE_LOG_DIR}/error.log
    LogLevel warn
    CustomLog ${APACHE_LOG_DIR}/voorloopnul.com.access.log combined
</VirtualHost>

Full tutorial: http://voorloopnul.com/blog/setting-up-django-with-apache-and-uwsgi-ubuntu-12-10/

Best Answer

It seems that you forgot to enable module libapache2-mod-uwsgi with a2enmod

Related Topic