nginx halp plskthx [solved]
-
@termnml said:
your firewall is blocking port 80
nginx is definitely running. It's routing http://BikeNode.com to the same broken page as http://178.62.247.86/ . How do I check to see if my firewall is blocking 80?
-
@kevin
That your domain is resolved to your IP adress is not the work of nginx. That does the DNS service for you.
The Check depends on your server. If you manage it all your own eg root-server. Check:iptables -L -n
If the output is very long simply do aiptables -L -n | grep :80
If your firewall is set by any software/interface of your provider, you have to look there.
-
@termnml
ah you're right about dns. I don't think there is a firewall. I'm just using digitalocean. If i runiptables -L -n
i get:Chain INPUT (policy ACCEPT)` target prot opt source destination Chain FORWARD (policy ACCEPT)` target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
-
root@$#!%:~/nodebb# service nginx reload * Reloading nginx configuration nginx [ OK ] root@$#!%:~/nodebb# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
-
Ran the following:
root@$#!%:~# cd /etc/nginx/sites-available root@$#!%:/etc/nginx/sites-available# sudo nano bikenode.com GNU nano 2.2.6 File: bikenode.com server { listen 80; server_name bikenode.com; location / { proxy_pass http:127.0.0.1:4567/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; proxy_buffering off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade" } } root@$#!%:/etc/nginx/sites-available# service nginx restart * Restarting nginx nginx [ OK ]
@Scuzz, Doesn't appear to have made a difference. Cleared browser cache but let me know if it's working for anyone else.
-
Pastebin.com - Not Found (#404)
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin (pastebin.com)
-
Seems like NGINX is not listening on Port 80.
Post the result of:
netstat -anp | grep -e ':80'
One question, did you already created the symlink in sites-enabled?
-
-
Yeah nothing, nginx is not listening.
Check if /etc/nginx/sites-enabled/ is empty.
NGINX only do not listen on a port if :
- Not Running
- There are no configs that define to listen on port 80