Advertisement
Guest User

Untitled

a guest
Aug 6th, 2015
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. +++++++
  2. +NGINX+
  3. +++++++
  4. server {
  5. listen 80;
  6. server_name ТУТ БЫЛ ТЕКСТ;
  7. access_log /home/ubuntu/contacts/log/nginx.access_log;
  8. error_log /home/ubuntu/contacts/log/nginx.error_log;
  9. location /static {
  10. alias /home/ubuntu/contacts/project/static;
  11. }
  12. location / {
  13. uwsgi_pass unix:///home/ubuntu/contacts/project/contacts.sock;
  14. include uwsgi_params;
  15. }
  16. }
  17.  
  18. +++++++
  19. +UWSGI+
  20. +++++++
  21. [uwsgi]
  22.  
  23. plugins = python
  24. chdir = /home/ubuntu/contacts/project
  25. wsgi-file = /home/ubuntu/contacts/project/project/wsgi.py
  26. master = true
  27. processes = 10
  28. socket = /home/ubuntu/contacts/project/contacts.sock
  29. chmod-socket = 666
  30. chown-socket = www-data:www-data
  31. home = /home/ubuntu/contacts/ENV
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement