From bb5e5815c05661197e4c04ffd3441f8c03736de2 Mon Sep 17 00:00:00 2001 From: savichev Date: Thu, 29 Oct 2015 13:19:10 +0500 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f5e90c6..febb789 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,10 @@ You will need to edit the main nginx.conf file as the one that comes from the rp Also make sure file in **/etc/nginx/conf.d/webvirtcloud.conf** has the proper paths: ``` +upstream gunicorn_server { + #server unix:/srv/webvirtcloud/venv/wvcloud.socket fail_timeout=0; + server 127.0.0.1:8000 fail_timeout=0; +} server { listen 80; @@ -137,7 +141,7 @@ server { } location / { - proxy_pass http://127.0.0.1:8000; + proxy_pass http://gunicorn_server; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for; proxy_set_header Host $host:$server_port;