Install Nodebb and Ghost Blog
-
I installed Ghost with Nginx, and now i want installing NodeBB in a sub-folder, example: https://bundlesbug.com/forum.
You can help me ? -
Inside this folder
/etc/nginx/conf.d/
Create a new file for the forum, like forum.conf
Now inside the new file paste this:server { listen 80; server_name bundlesbug.com/forum; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:4567; } }
Don't forget to check the port for nodebb, in this example i used the default one.
-
This sounds extremely interesting because I know openshift definitely uses nginx, and its way more than easy to host both ghost and nodebb individually, it'd be a pretty sweet setup to get both wrapped up in one with the commenting plugin all set up. Although nodebb definitely wouldn't be hosted for free because it takes too much space.
-
@kimikelku said:
server_name bundlesbug.com/forum;
That is wrong. Server name remains the same (and you can't pass URL like parameters on server name), location changes. The right way is:
server { listen 80; server_name bundlesbug.com; location /forum/ { Check NodeBB documentation for the complete configuration that follows here. } }
-
@Fastidious i will try, thank you!