Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /var/www/mysite
- |-- mysite
- | +-- templates/
- | +-- static/
- | +--__init__.py
- +-- uwsgi.ini
- [uwsgi]
- chdir = /var/www/mysite/
- socket = /tmp/mysite.sock
- module = mysite
- callable = app
- vacuum = True
- uid = www-data
- gid = www-data
- server {
- listen 80 default_server;
- listen [::]:80 default_server;
- root /var/www/html;
- index index.html index.htm;
- server_name _;
- location / { try_files $uri @mysite; }
- location @mysite {
- include uwsgi_params;
- uwsgi_pass unix:///tmp/mysite.sock;
- }
- }
- [Unit]
- Description=uWSGI Emperor
- After=syslog.target
- [Service]
- ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/emperor.ini
- # Requires systemd version 211 or newer
- RuntimeDirectory=uwsgi
- Restart=always
- KillSignal=SIGQUIT
- Type=notify
- StandardError=syslog
- NotifyAccess=all
- [Install]
- WantedBy=multi-user.target
- [uwsgi]
- emperor = /etc/uwsgi/vassals
- uid = www-data
- gid = www-data
- 2016/02/09 17:45:01 [error] 1708#0: *304 upstream prematurely closed connection while reading response header from upstream, client: 123.123.123.123, server: _, request: "GET / HTTP/1.1", upstream: "uwsgi://unix:///tmp/mysite.sock:", host: "mysite.domain"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement