How do you get to the Nginx configuration
-
@kevin this seems fine, although root should be the actual path to your nodebb install, but don't think that changes anything.
Could you paste the public/config.json file from your nodebb dir? If I'm not mistaken fresh configs only contain the relative_path item.
-
-
Registered an account on your site and logged in fine. Not sure what can cause the issue for you but it might be client-side.
-
@BarveyHirdman did you do it with the ip address or the URL?
-
-
Depends on the browser.
Try ctrl+f5 or shift+f5
@barveyhirdman
It doesnt work for me on the URL. The numbers do not appear at the bottom of the page.Chrome
https://support.google.com/chrome/answer/95582?hl=en-GBYou need to change this line:
root /path/to/nodebb/install;
In your sites-available to the location of your nodebb install too. Then restart nginx.
-
Oh, yeah i know how to clear the browser cache. I thought you meant some other cache on the website.
So maybe this'll show what i mean
This is the ip address
This is californiamotorcycleforum.com
ip address
if you notice that certain features stop working. In the url it won't show that i'm logged in. It wont show the forum stats. It wont show if someone is online or offline.
-
-
@BarveyHirdman
huh.... now i'm confused. It's still doing it across all browsers after clearing everything, logging out, logging back in. No changes. Your fonts look different too. -
@barveyhirdman
Im not getting that :S, this is weird.Try setting the server to
127.0.0.1:4567;
See my root? That is the location of the NodeBB install. But that doesnt seem to matter like i thought it did as mine is in a different location and still works.
upstream nodebb { server 127.0.0.1:4567; } server { listen 80; server_name www.bitbangers.co.uk bitbangers.co.uk; root /var/www/bitbangers.co.uk/NodeBB; 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://nodebb/; proxy_redirect off; # Socket.IO Support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini # With php5-cgi alone: #fastcgi_pass 127.0.0.1:9000; # With php5-fpm: fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } }
-
@kevin What is the location of your nodebb folder?
On my server the nodebb folder where the nodebb app is is in
/var/www/bitbangers.co.uk/htdocs/NodeBB
As shown above, mine is incorrect so that shouldnt make a difference. But you might want to change it anyway just in case it is causing a problem.
Change
upstream nodebb { server 198.199.96.7:4567 }
to
upstream nodebb { server 127.0.0.1:4567; }
You also missed off a ; in your config when declaring the server ipaddress.
-
Root directive in ngninx virtual hosts are ignored as all requests are immediately proxied to Node. It can even be ommitted.