From 415e3e1f9d4ce819b6661386383645ec02b9070d Mon Sep 17 00:00:00 2001 From: prance Date: Sun, 30 Jan 2022 19:22:11 +0100 Subject: [PATCH] add default proxy pass before ifs --- MUOR/MUOR/configs/muor.conf | 2 ++ MUOR/MUOR/configs/muor_before_location_block.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/MUOR/MUOR/configs/muor.conf b/MUOR/MUOR/configs/muor.conf index 93a85fb50..e59658976 100644 --- a/MUOR/MUOR/configs/muor.conf +++ b/MUOR/MUOR/configs/muor.conf @@ -54,6 +54,8 @@ server { # Finally, send all non-media requests to the Django server. location / { + proxy_pass http://django; # TODO prolly change that to uwsgi_pass + if ($cookie_sessionid = ""){ proxy_pass http://django; # TODO prolly change that to uwsgi_pass # uwsgi_pass django; diff --git a/MUOR/MUOR/configs/muor_before_location_block.conf b/MUOR/MUOR/configs/muor_before_location_block.conf index 8417efe47..4b6b04e58 100644 --- a/MUOR/MUOR/configs/muor_before_location_block.conf +++ b/MUOR/MUOR/configs/muor_before_location_block.conf @@ -55,3 +55,5 @@ server { # Finally, send all non-media requests to the Django server. location / { + proxy_pass http://django; # TODO prolly change that to uwsgi_pass +