try-fix
This commit is contained in:
parent
dd7ef6f600
commit
e30255f504
@ -46,15 +46,17 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /logout/ {
|
location /logout/ {
|
||||||
proxy_pass http://django;
|
uwsgi_pass django;
|
||||||
|
include /etc/nginx/uwsgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Finally, send all non-media requests to the Django server.
|
# Finally, send all non-media requests to the Django server.
|
||||||
location / {
|
location / {
|
||||||
if ($cookie_sessionid = ""){
|
if ($cookie_sessionid = ""){
|
||||||
# proxy_pass http://django; # TODO prolly change that to uwsgi_pass
|
# proxy_pass http://django; # TODO prolly change that to uwsgi_pass
|
||||||
include /etc/nginx/uwsgi_params;
|
|
||||||
uwsgi_pass django;
|
uwsgi_pass django;
|
||||||
|
include /etc/nginx/uwsgi_params;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
if ($cookie_sessionid = ""){
|
if ($cookie_sessionid = ""){
|
||||||
# proxy_pass http://django; # TODO prolly change that to uwsgi_pass
|
# proxy_pass http://django; # TODO prolly change that to uwsgi_pass
|
||||||
include /etc/nginx/uwsgi_params;
|
|
||||||
uwsgi_pass django;
|
uwsgi_pass django;
|
||||||
|
include /etc/nginx/uwsgi_params;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,8 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /logout/ {
|
location /logout/ {
|
||||||
proxy_pass http://django;
|
uwsgi_pass django;
|
||||||
|
include /etc/nginx/uwsgi_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Finally, send all non-media requests to the Django server.
|
# Finally, send all non-media requests to the Django server.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[uwsgi]
|
[uwsgi]
|
||||||
chdir=/home/randomsec/RandomSec/MUOR/MUOR
|
chdir=/home/randomsec/RandomSec/MUOR/
|
||||||
module=MUOR.wsgi
|
module=MUOR.wsgi
|
||||||
master=True
|
master=True
|
||||||
pidfile=/home/randomsec/uwsgi-file/project-master.pid
|
pidfile=/home/randomsec/uwsgi-file/project-master.pid
|
||||||
|
Loading…
Reference in New Issue
Block a user