Guest User

fsdfds

a guest
May 6th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. nginx.conf
  2. server {
  3. listen 127.0.0.1;
  4. server_name localhost;
  5. location / {
  6. root /home/user/source_project/python/djcode;
  7. access_log /var/log/nginx/localhost.access_log main;
  8. error_log /var/log/nginx/localhost.error_log info;
  9. index index.php index.html index.htm;
  10. }
  11.  
  12. listen 80;
  13. server_name some_site.com;
  14. location /some_site {
  15. root /home/user/source_project/python/djcode/some_site;
  16. access_log /var/log/nginx/some_site.access.log;
  17. error_log /var/log/nginx/some_site.error.log;
  18. #index index.php index.html index.htm;
  19. uwsgi_pass 127.0.0.1:8012;
  20. include uwsgi_params;
  21. }
  22.  
  23. }
  24. upstream djangoserv {
  25. server 127.0.0.1:8012;
  26. }
  27.  
  28.  
  29. laptop nginx # cat /etc/uwsgi/uwsgi.xml
  30. <foo>
  31. <!-- some django project -->
  32. <uwsgi>
  33. <socket>/var/run/uwsgi/django_project.sock</socket>
  34. <processes>2</processes>
  35. <pythonpath>/home/user/source_project/python/djcode/some_site/</pythonpath>
  36. <wsgi-file>/home/user/source_project/python/djcode/some_site/django.wsgi</wsgi-file>
  37. <module>django_wsgi</module>
  38. </uwsgi>
Advertisement
Add Comment
Please, Sign In to add comment