Jimmies San
is this? or you put your external ip inside it in the real conf?
Leonardo
ok what i put there?
Jimmies San
the ext ip :) [or the domain if you hav eone]
Leonardo
idk i just followed the guide
Jimmies San
yes but guide is a guide
Jimmies San
is not a "ready for all" tutorial :D
Jimmies San
you need to adapt it a bit for your needs
Jimmies San
but we are almost there
Leonardo
i adpted things he appointed
Leonardo
with bold
Leonardo
ok
Jimmies San
yes but you share a nginx conf with me, where i see server_name server_domain_or_ip;
Leonardo
i have a vhost account
Jimmies San
change server_domain_or_ip with external ip address of ec2 please
Jimmies San
and reload nginx
Leonardo
yeah sure, i'm just telling you that i don't have experience and don't know what to do
Leonardo
what address?
Leonardo
ipv4? ipv6?
Jimmies San
and we are helping you for this reason :)
Jimmies San
ipv4
Leonardo
ok
Leonardo
sec
Leonardo
ok mate, did!
Leonardo
now i restart nginx and uwsgi right?
Jimmies San
no, just reload nginx. not restart needed
Leonardo
ok, done
Jimmies San
ok, now.. we have to check if nginx conf is in the right place
Jimmies San
where is your nginx conf for this app? where you put it? i mean path
Leonardo
it's on /etc/nginx/sites-available/
Jimmies San
ok
Jimmies San
and if you do ls /etc/nginx/sites-available you see it?
Leonardo
with a symlink on /etc/nginx/sites-enabled/
Jimmies San
ok
Leonardo
ubuntu@ip-172-31-85-43:~$ ls /etc/nginx/sites-available/ ambiente_er default
Leonardo
it's there
Jimmies San
remove the link to default, so we force nginx to serve just ours
Leonardo
ok
Jimmies San
your uwsgi.ini file is inside the /etc/uwsgi/sites ... right?
Leonardo
ok removed from both folder, sites-available and sites-enabled
Leonardo
lemme check
Jimmies San
ok removed from both folder, sites-available and sites-enabled
not needed, you can remove it from enabled and store the conf inside available so maybe in future can find there. only removed from enabled, in future, is enough
Leonardo
your uwsgi.ini file is inside the /etc/uwsgi/sites ... right?
yes, it's there ubuntu@ip-172-31-85-43:~$ ls /etc/uwsgi/sites/ambiente_er.ini
Jimmies San
ok
Jimmies San
systemctl reload nginx
Leonardo
done
Jimmies San
err_connection_refused
Jimmies San
check nginx error logs into var log nginx
Leonardo
https://pastebin.com/GyzaQrBy
Leonardo
it's giving error for you?
Leonardo
for me still same
Leonardo
"welcome to nginx" message
Leonardo
http://52.205.253.147/
Jimmies San
"welcome to nginx" message
it's cached, open f12 disable cache and retry
Jimmies San
[crit] 14699#14699: *1 connect() to unix:///home/ubuntu/ambiente_er.sock failed (2: No such file or directory)
Jimmies San
don't find the uwsgi process so can't proxypass requests
Jimmies San
you have to stop the django runserver, not run it in parallel
Leonardo
oh, you're right
Jimmies San
and with runserver you call the local
Leonardo
well, i didn't ran runserver
Leonardo
oh
Jimmies San
well, i didn't ran runserver
why on port 8000 there is a django ?
Leonardo
i don't know bud, i'm not running that, let me kill the process then
Leonardo
bud
Leonardo
it's not running
Leonardo
look the time
Leonardo
hahaha
Leonardo
that was when i was setting up
Leonardo
i just copied all log file
Jimmies San
it's not running
http://52.205.253.147:8000/admin/login/?next=/admin/
Jimmies San
so you don't see that?
Leonardo
if i run with python manage.py runserver, the css is loaded
Leonardo
so is not django that's serving this
Leonardo
is not running bud, check the time
Leonardo
2018/10/06 16:25:51 [crit] 14699#14699
Leonardo
16:25
Jimmies San
i'm saying another thing. i'm asking why there is a listening django on 8000
Jimmies San
i'm not talking about uwsgi
Jimmies San
in this way is really hard to help: you need to listen
Jimmies San
open the browser on http://52.205.253.147:8000/admin/login/?next=/admin/