Difference between revisions of "UWSGI"

From ArchWiki
Jump to: navigation, search
(Nginx configuration)
m (Fixed package name)
Line 3: Line 3:
== Installation ==
== Installation ==
[[Pacman|Install]] package {{Pkg|uswgi}} in the [[Official Repositories|official repositories]].
[[Pacman|Install]] package {{Pkg|uwsgi}} in the [[Official Repositories|official repositories]].
== Starting Service ==
== Starting Service ==

Revision as of 12:53, 2 August 2013


Install package uwsgi in the official repositories.

Starting Service

To enable the uwsgi service by default at start-up, run:

# systemctl enable uwsgi@helloworld.service


# systemctl enable uwsgi@helloworld.socket

To start the Nginx service, run:

# systemctl start uwsgi


You can create a configuration by editing and putting that in /etc/uswgi/. There is a build file shipped with the package located at /etc/uwsgi/archlinux.ini.

More details can be found here: [1].

Application configuration

The following is a simple example to get python support. You may need to install the uwsgi-plugin-python or uwsgi-plugin-python2 plugin from the community repository by pacman.

[uwsgi] chdir = /srv/http/hwp module = helloworld plugins = python

Nginx configuration
       location / {
           root   /usr/share/nginx/html;
           index  index.html index.htm;
           include uwsgi_params;
           # uwsgi_pass unix:/var/run/uwsgi/helloworld.sock;

See Also