From 77ea34009789f72e703093447f5c0e170a963d72 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Mon, 2 Sep 2019 15:36:24 -0500 Subject: [PATCH] try fixing subpath proxy --- ops/nginx/conf.d/filterlists.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ops/nginx/conf.d/filterlists.conf b/ops/nginx/conf.d/filterlists.conf index 4a26840aa..9ba8d67a5 100644 --- a/ops/nginx/conf.d/filterlists.conf +++ b/ops/nginx/conf.d/filterlists.conf @@ -21,8 +21,10 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } - location ~ ^/ { - proxy_pass http://web:80; +location / {if (!-e $request_filename){rewrite https://$server_name break;} + + location / { + proxy_pass http://web:80/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection keep-alive;