Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nginx.conf
- server {
- listen 127.0.0.1;
- server_name localhost;
- location / {
- root /home/user/source_project/python/djcode;
- access_log /var/log/nginx/localhost.access_log main;
- error_log /var/log/nginx/localhost.error_log info;
- index index.php index.html index.htm;
- }
- listen 80;
- server_name some_site.com;
- location /some_site {
- root /home/user/source_project/python/djcode/some_site;
- access_log /var/log/nginx/some_site.access.log;
- error_log /var/log/nginx/some_site.error.log;
- #index index.php index.html index.htm;
- uwsgi_pass 127.0.0.1:8012;
- include uwsgi_params;
- }
- }
- upstream djangoserv {
- server 127.0.0.1:8012;
- }
- laptop nginx # cat /etc/uwsgi/uwsgi.xml
- <foo>
- <!-- some django project -->
- <uwsgi>
- <socket>/var/run/uwsgi/django_project.sock</socket>
- <processes>2</processes>
- <pythonpath>/home/user/source_project/python/djcode/some_site/</pythonpath>
- <wsgi-file>/home/user/source_project/python/djcode/some_site/django.wsgi</wsgi-file>
- <module>django_wsgi</module>
- </uwsgi>
Advertisement
Add Comment
Please, Sign In to add comment