Config Nginx for another site in same VPS with Ghost


#1

Hi,

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

I configured Nginx with forum.domail.com.conf then the error occurred for Ghost.

So what should I do?

Thank!


#2

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


#3

@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!


#4

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;

   server_name www.domain.com;

   root /srv/www/domain.com;
   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;
       proxy_pass         http://127.0.0.1:2368;
      }
}

#5

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


#6

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