nginx halp plskthx [solved]
-
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
-
now I'm realy confused. At least node should be listed O.o
Since it is running http://bikenode.com:4567/ -
This is what we've got right now:
This is what we've got right now:
root@15:~# cd /etc/nginx/site-enabled -bash: cd: /etc/nginx/site-enabled: No such file or directory
I'm looking at it right now in FTP:
root@15:~# cd /etc/nginx/sites-available root@15:/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_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-NginX-Proxy true; proxy_pass http://127.0.0.1:4567/; proxy_redirect off; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade" } }