Unsolved How to config Nginx to load both index.html & NodeBB


  • 1st of all i'm new to Nginx, and this is the 1st time i'm really setting up NodeBB. So pls forgive me when i'm asking basic dummy questions.

    Basically followed this

    using Ubunt 20. So far so good with the installation.

    The folder structure looks like this in the server:

    /home/user/abcde/index.html
    /root/nodebb (This might be a mistake but ...)
    

    Eventually index.html will have a hyperlink which links to the NodeBB forum.

    Right now the /etc/nginx/nginx.conf has a block like this, and index.html does load fine in browser

    server {
    	server_name mysite.com;
    	location / {
    		root /home/user/abcde;
    	}
    }
    

    My question is: how to modify nginx.conf so it can load the NodeBB as well ?
    Again the final goal is ppl can access NodeBB from its link from index.html.

    Thanks very much for your help !


Suggested Topics

| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.