From e30255f504619dd20eb57d78f974e2f83a26aa06 Mon Sep 17 00:00:00 2001 From: makram89 Date: Sun, 30 Jan 2022 17:18:02 +0100 Subject: [PATCH] try-fix --- MUOR/MUOR/configs/muor.conf | 6 ++++-- MUOR/MUOR/configs/muor_after_location_block.conf | 2 +- MUOR/MUOR/configs/muor_before_location_block.conf | 3 ++- MUOR/MUOR/configs/uwsgi.ini | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/MUOR/MUOR/configs/muor.conf b/MUOR/MUOR/configs/muor.conf index 30ee01f14..9d485caf8 100644 --- a/MUOR/MUOR/configs/muor.conf +++ b/MUOR/MUOR/configs/muor.conf @@ -46,15 +46,17 @@ server { } location /logout/ { - proxy_pass http://django; + uwsgi_pass django; + include /etc/nginx/uwsgi_params; } # Finally, send all non-media requests to the Django server. location / { if ($cookie_sessionid = ""){ # proxy_pass http://django; # TODO prolly change that to uwsgi_pass - include /etc/nginx/uwsgi_params; uwsgi_pass django; + include /etc/nginx/uwsgi_params; + } } diff --git a/MUOR/MUOR/configs/muor_after_location_block.conf b/MUOR/MUOR/configs/muor_after_location_block.conf index 34322b995..8ea977999 100644 --- a/MUOR/MUOR/configs/muor_after_location_block.conf +++ b/MUOR/MUOR/configs/muor_after_location_block.conf @@ -1,8 +1,8 @@ if ($cookie_sessionid = ""){ # proxy_pass http://django; # TODO prolly change that to uwsgi_pass - include /etc/nginx/uwsgi_params; uwsgi_pass django; + include /etc/nginx/uwsgi_params; } } diff --git a/MUOR/MUOR/configs/muor_before_location_block.conf b/MUOR/MUOR/configs/muor_before_location_block.conf index 952706970..4493cb764 100644 --- a/MUOR/MUOR/configs/muor_before_location_block.conf +++ b/MUOR/MUOR/configs/muor_before_location_block.conf @@ -45,7 +45,8 @@ server { } location /logout/ { - proxy_pass http://django; + uwsgi_pass django; + include /etc/nginx/uwsgi_params; } # Finally, send all non-media requests to the Django server. diff --git a/MUOR/MUOR/configs/uwsgi.ini b/MUOR/MUOR/configs/uwsgi.ini index 486d8642b..e017cbaa5 100644 --- a/MUOR/MUOR/configs/uwsgi.ini +++ b/MUOR/MUOR/configs/uwsgi.ini @@ -1,5 +1,5 @@ [uwsgi] -chdir=/home/randomsec/RandomSec/MUOR/MUOR +chdir=/home/randomsec/RandomSec/MUOR/ module=MUOR.wsgi master=True pidfile=/home/randomsec/uwsgi-file/project-master.pid