From 6fa59cc0c7a57b31a23483778f62ab214e571164 Mon Sep 17 00:00:00 2001 From: Mike Olund Date: Thu, 9 Mar 2017 11:37:20 -0800 Subject: [PATCH] EDIVORCE-15 - removed work-arounds for double slashes in upstream proxy --- nginx-proxy/conf.d/server.conf | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nginx-proxy/conf.d/server.conf b/nginx-proxy/conf.d/server.conf index efb9a2f7..c1a8d231 100644 --- a/nginx-proxy/conf.d/server.conf +++ b/nginx-proxy/conf.d/server.conf @@ -12,10 +12,6 @@ server { proxy_pass http://edivorce-django:8080; proxy_pass_request_headers on; - # rewrite 302 redirect responses to absolute URL's so the justice proxy - # doesn't mangle them by removing slashes from relative URL's - proxy_redirect http://edivorce-django:8080 https://justice.gov.bc.ca; - # remove directories from incoming requests; rewrite ^/divorce-dev$ / last; rewrite ^/divorce-test$ / last; @@ -26,12 +22,6 @@ server { rewrite ^/divorce(.*)$ $1 last; } - merge_slashes off; - # replace merge_slashes' behavior with "rewrite double slashes" - location ~* "//" { - rewrite ^(.*)//(.*)$ $1/$2; - } - # static no rewrite (dev) location /divorce-dev/static/ { #todo: add caching