Sunday, March 1, 2015

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



I have this error:




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






ServerAdmin your@email.com
ServerName voorloopnul.com
ServerAlias www.voorloopnul.com

DocumentRoot /var/www



Options FollowSymLinks Indexes
AllowOverride None



Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all




Options FollowSymLinks Indexes
SetHandler uwsgi-handler
uWSGISocket 127.0.0.1:3031



SetHandler none



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

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



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



Answer



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


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...