From 3338894c239c5f8963e3a1f7316b17bed6cfe75a Mon Sep 17 00:00:00 2001 From: rscnt Date: Sun, 31 May 2015 05:36:45 -0600 Subject: [PATCH] configs: added nginx conf example Signed-off-by: rscnt --- configs/nginx.proxy.conf | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/configs/nginx.proxy.conf b/configs/nginx.proxy.conf index acf288fa..4f9f3420 100644 --- a/configs/nginx.proxy.conf +++ b/configs/nginx.proxy.conf @@ -1,19 +1,20 @@ server { - listen 8081; + listen destruction.io:8080; server_name destruction.io; - location /static/ { - alias /home/r/dynamicweb/static; + location /static { + alias /home/r/dynamicweb/static/; } - location /media/ { - alias /home/r/dynamicweb/media; + location /media { + alias /home/r/dynamicweb/media/; } location / { - proxy_pass http://localhost:8080/; + proxy_pass http://127.0.0.1:8000/; proxy_pass_header Server; - proxy_set_header Host $host; + proxy_set_header Host $host:8080; + proxy_set_header X-Forwarded-Host $host:8080; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme;