nginx halp plskthx [solved]
-
@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.
-
-
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
-
now I'm realy confused. At least node should be listed O.o
Since it is running http://bikenode.com:4567/
Copyright © 2024 NodeBB | Contributors