Issue naming the root of NodeBB install
-
I installed like this:
git clone -b v1.7.4 https://github.com/NodeBB/NodeBB.git $HOME/nodebbUsed this command to add my domain.
sudo nano /etc/nginx/conf.d/default.conffor location I've tried everything.
/nodebb/nodebbI did a pwd
I got this:
/home/name1000/nodebbI put that and still nothing. When I visit my domain address I get a 404 Not Found.
server {
listen 80;
server_name http://www.MyDOMAIN.com;#charset koi8-r; #access_log /var/log/nginx/host.access.log main; location / { root **** NO-IDEA ??? ****; index index.html index.htm; } #error_page 404 /404.html; # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # #location ~ \.php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} # deny access to .htaccess files, if Apache's document root # concurs with nginx's one # #location ~ /\.ht { # deny all; #}
}
-
You have to actually start NodeBB, it doesn't run by just installing it.
-
@pitaj I did, I could see it live at http://myipaddress:4567
-
@jimmyc2018 said in Issue naming the root of NodeBB install:
@pitaj I did, I could see it live at http://myipaddress:4567
Is your domain set to resolve to that IP address?
Your nginx config also looks like it is missing a lot. The documentation has a lot of info. A full example block with all the recommendations lives here: https://docs.nodebb.org/configuring/scaling/ but at a minimum you should follow the guide on this page: https://docs.nodebb.org/configuring/proxies/nginx/