@departman
Year thats right. It would work with no probs. But I prefer it this way to be more clean imho.
termnml
Posts
-
nginx halp plskthx [solved] -
nginx halp plskthx [solved]Glad to see. We won.
Don't forget to prepend your OP with [solved]. -
nginx halp plskthx [solved]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"; } }
add a ; after proxy_set_header Connection "upgrade"
So it should look like the above now. -
nginx halp plskthx [solved]And one more time to pastebin:
cat /var/log/nginx/error.log
-
nginx halp plskthx [solved]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.
-
nginx halp plskthx [solved]@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
-
nginx halp plskthx [solved]The two nginx names are okay.
What saysls -la /etc/nginx/sites-enabled
?
Maybe a broken link. Nginx would(should XD) complain. But better check. -
nginx halp plskthx [solved]Just do
root@15:~# ln -sf /etc/nginx/sites-available/bikenode.com -T /etc/nginx/sites-enabled/bikenode.com root@15:~# /etc/init.d/nginx restart
-
nginx halp plskthx [solved]@departman
Oh right. Stupid brain. -
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/ -
NGINX ErrorThe location for the files is prepended by a /.
For your aim it has to be removed. source<link rel="stylesheet" type="text/css" href="/stylesheet.css?xxxxx">
to
<link rel="stylesheet" type="text/css" href="stylesheet.css?xxxxx">
For this to work code would have to be rewritten. Good luck with this.
Why do you want to make your live harder with constantly avoiding subdomains.
They are much cleaner. And I think "the officials" will not come to "rescue" you. -
nginx halp plskthx [solved]Could you paste logs for nginx (pastebin)?
pastebin: optionPaste Exposure: Unlisted
Try to reach your normal domain and then do:
tail /var/log/nginx/error.log tail /var/log/nginx/access.log
-
nginx halp plskthx [solved]@kevin said:
I dont believe so. Im terrible with this stuff and was following the nodebb for dummies installation.
Was Apache installed on your system or nginx already?
-
nginx halp plskthx [solved]Could it be that you started with a LAMP setup and wanted to switch to nginx (because it is so awesome :D)?
-
nginx halp plskthx [solved]This sir is never a good idee
For such configs is always root needed.
And don't give this access to "some guys" on the internet.Latest Ubuntu? On a server? For production? O.o arg
-
nginx halp plskthx [solved]I dont think it has anything to do with the configs.
Otherwise nginx would complaining.
I'm curious that your port 80 isn't visible to the outside at all.Which system is running?
Debian, Ubuntu, CentOS? -
What is the difference between MongoDB and Redis? and Which one is better ?Ah i like the forward-thinking of the nodebb guys.
-
What is the difference between MongoDB and Redis? and Which one is better ?@aixnr said:
Some application might leverage the best of both (MongoDB and Redis), where in this setup the Redis will act as the caching DB while MongoDB as the main DB. Kinda the same as HDD+SSD hybrid setup. You store the most frequently used stuffs on the SSD for faster access (hot storage), while the less used ones on the HDD (cold storage).
It never occurred to me. It's a great idea, overall.
-
nginx halp plskthx [solved]@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.