From 2915d7f81e0de43c5e33d33ddc2263821af937e1 Mon Sep 17 00:00:00 2001 From: rscnt Date: Tue, 9 Jun 2015 02:26:41 -0600 Subject: [PATCH] configs: nginx proxy example to match with staging. Signed-off-by: rscnt --- configs/nginx.proxy.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/nginx.proxy.conf b/configs/nginx.proxy.conf index 4f9f3420..cee2e4c1 100644 --- a/configs/nginx.proxy.conf +++ b/configs/nginx.proxy.conf @@ -1,20 +1,20 @@ server { - listen destruction.io:8080; - server_name destruction.io; + listen 80; + server_name dynamicweb-staging.ungleich.ch; location /static { - alias /home/r/dynamicweb/static/; + alias /home/app/django/dynamicweb/static/; } location /media { - alias /home/r/dynamicweb/media/; + alias /home/app/django/dynamicweb/media/; } location / { proxy_pass http://127.0.0.1:8000/; proxy_pass_header Server; - proxy_set_header Host $host:8080; - proxy_set_header X-Forwarded-Host $host:8080; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Host $host; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Scheme $scheme;