Using my sites subdirectory while runing Nodebb
-
So I have nodebb on my main domain, e.g. mysite.org
I want to put my own html page at mysite.org/extraBut browser says mysite.org/extra cant be reached, even though the subdurectory exists. Something in the nodebb install on main page is blocking it.
What is causing this and how do I get subdirectory usable?
-
@eeeee How are you serving up the directory, is it in the NodeBB folder?
There are a couple ways... if you want it to be with the NodeBB header/footer, etc, you can use the custom-pages plugin.
Otherwise you can set up nginx (or your reverse proxy of choice) to serve that html directly. Right now all requests for
mysite.org
are going straight to NodeBB and NodeBB doesn't know how to handle it, is all -
@julian said in Using my sites subdirectory while runing Nodebb:
@eeeee How are you serving up the directory, is it in the NodeBB folder?
on server I have a www directory
in there a directory for each of my domains
then I make a subdirectorySo for example mysite2 which doesnt have nodebb on it, I make mysite2.org/extras2 directory and put index.html in there
and browser can find and present that no problem -
@eeeee the reason is because currently your reverse proxy setup is forwarding all requests to NodeBB, including that of
extras2
. So you will need to either adjust your proxy config to not do that for that folder, or update NodeBB to handle it.