From 42fe23724cafba7aa0c09eabcb9c5304d558369c Mon Sep 17 00:00:00 2001 From: abeudin Date: Fri, 10 Jan 2014 15:18:46 +0100 Subject: [PATCH] Create nginx.conf-nosub --- conf/nginx.conf-nosub | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 conf/nginx.conf-nosub diff --git a/conf/nginx.conf-nosub b/conf/nginx.conf-nosub new file mode 100644 index 0000000..9a0fd70 --- /dev/null +++ b/conf/nginx.conf-nosub @@ -0,0 +1,9 @@ +location / { + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + proxy_pass http://localhost:9001/; + proxy_set_header Host $host; + # be carefull, this line doesn't override any proxy_buffering on set in a conf.d/file.conf + proxy_buffering off; +}