Config Nginx for another site in same VPS with Ghost



I would like to configure Nginx for NodeBB to install the same VPS with Ghost.

I configured Nginx with then the error occurred for Ghost.

So what should I do?



Can you provide more information, such as your nginx configs and your installation paths?


@dsecareanu Thank you for responding!

I install Ghost CMS in /var/ghost/ and install NodeBB in /var/nodebb/. I config Nginx for NodeBB, then Ghost display 502 error!


How does your nginx config look like for each of those two hosts? For example, this is one of mine (the Ghost one):

server {
    listen 80;
    listen [::]:80;
    listen 443 ssl http2;
    listen [::]:443 ssl http2;


   root /srv/www/;
   index index.php index.html;

   location / {
   proxy_set_header HOST $host;
   proxy_set_header X-Forwarded-Proto $scheme;
   proxy_set_header X-Real-IP $remote_addr;
   proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;


Thank, and How to create a Directory Lister folder, and i can upload PDF, Docx,… to this folder.

closed #6

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.