I don't know if you need to get rid of the domain folder, but you do need to set up the reverse proxy.
nodebb.conf is blank
-
My site works fine in mysite.com:4657
I knew that i had to change the server name to make it work without ":4567" but when i go to
nano etc/nginx/conf.d/nodebb.conf its completely blank
. How can i solve this issue.?
-
You'll need to create the
nodebb.conf
file, and populate it with the example provided in the documentation -
thanks for the help, how do i create a file in ssh. i am using digitalocean ubuntu server?
-
By using
nano
, you've already created the file (or you will create it, when you add stuff to it and save)Don't forget to test your new config (
sudo nginx -t
) and reload nginx (sudo service nginx reload
) when you're done! -
I am getting this error while trying to save the file
"error writing permission denied". I might have made some silly mistake somewhere
-
I think the whole nginx folder is owned by a daemon user, so before you start creating the file, you'd want to
sudo su <nginx user>
-
after logging into ssh i typed "sudo su username" and tried to create the file. still same issue pops up. I have configured for "superuser". Should i try it from "root user"
-
Should i change any chmod permission to that folder
-
Can you paste the output of an
ls -la
from the folder where you're trying to create the file? you shouldn't need to chmod anything, in fact that's probably a bad idea. -
Yes here it is. the first screenshot is the error i get
-
Oh ok, so just save your changes (somewhere else), close your nano editor, then do a
sudo nano nodebb.conf
and start editing.
I don't use nano so I don't know if there's a way to switch users before writing... like in vim -
Done.... a million thanks....i've been fighting with this for the past 4 hours. Finally asked for help