nginx halp plskthx [solved]
-
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" } }
-
@kevin Ok
-bash: cd: /etc/nginx/site-enabled: No such file or directory
That is definetly wrong, execute the following:
mkdir /etc/nginx/sites-enabled cd /etc/nginx/sites-enabled ln -s ../sites-available/bikenode.com . /etc/init.d/nginx restart
-
root@15:/etc/nginx/sites-enabled# ls -la /etc/nginx/sites-enabled total 8 drwxr-xr-x 2 root root 4096 Nov 22 04:21 . drwxr-xr-x 6 root root 4096 Nov 22 04:14 .. lrwxrwxrwx 1 root root 41 Nov 22 04:21 bikenode.com -> /etc/nginx/sites-available/yourAppUrl.com
-
@kevin said:
root@15:/etc/nginx/sites-enabled# ls -la /etc/nginx/sites-enabled
total 8
drwxr-xr-x 2 root root 4096 Nov 22 04:21 .
drwxr-xr-x 6 root root 4096 Nov 22 04:14 ..
lrwxrwxrwx 1 root root 41 Nov 22 04:21 bikenode.com -> /etc/nginx/sites-available/yourAppUrl.comAh okay. The link is wrong
root@15:# cd /etc/nginx/sites-enabled root@15:# rm ./bikenode.com root@15:# ln -sf /etc/nginx/sites-available/bikenode.com -T /etc/nginx/sites-enabled/bikenode.com root@15:# service nginx restart
-
Giving me issues...
root@15:/etc/nginx/sites-enabled# rm bikenode.com root@15:/etc/nginx/sites-enabled# ln -s ../sites-available/bikenode.com . root@15:/etc/nginx/sites-enabled# /etc/init.d/nginx restart * Restarting nginx nginx [fail] root@15:/etc/nginx/sites-enabled# ls -la /etc/nginx/sites-enabled total 8 drwxr-xr-x 2 root root 4096 Nov 22 16:54 . drwxr-xr-x 6 root root 4096 Nov 22 04:14 .. lrwxrwxrwx 1 root root 31 Nov 22 16:54 bikenode.com -> ../sites-available/bikenode.com
I can see the new link is in the folder
-
root@15:/etc/nginx/sites-enabled# rm bikenode.com root@15:/etc/nginx/sites-enabled# ln -sf /etc/nginx/sites-available/bikenode.com -T /etc/nginx/sites-enabled/bikenode.com root@15:/etc/nginx/sites-enabled# service nginx restart
Jear its not wise to use relative links there. Try this way.
Copyright © 2024 NodeBB | Contributors