cannot connect to my nginx server from remote machine
Posted
by
margincall
on Server Fault
See other posts from Server Fault
or by margincall
Published on 2013-11-06T20:12:47Z
Indexed on
2013/11/06
21:56 UTC
Read the original article
Hit count: 140
I thought that it's iptables problem.. but it seems not. I really have no idea about this situation.
I'm getting a server hosting(CentOS). I installed Nginx + Django and nginx uses 8080 port. A domain is connected to the server.
When I executed "wget [domain]:8080/[app name]/" in the server, it worked. Of course, "wget 127.0.0.1:8080/[app name]/" has no problem. (wget [server ip]:8080/[app name]/, either)
However, from other computers, connecting was failed. (message says, no route)
I checked my firewall setting. I excuted these commands.
iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
iptables -I OUTPUT -p tcp --sport 8080 -j ACCEPT
iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
/etc/init.d/iptables restart
I don't really understand all options of commands and I think there were useless commands, but I just tried all googled iptables settings.
But still I cannot connect to my server. What should I check, first?
I don't know this is important, but add to this post. On 80 port, an apache server is running. It works fine, I can connect to apache from other computers. There is DB connecting issue, (PHP to MySQL) but I think that it is just PHP coding bug.
please excuse my low-level English. I'm not native English speaker.. but I tried to explane well as far as possible. Thank you for reading this question.
© Server Fault or respective owner