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