Problems with subdomains

Technical Support
  • Ok, let me start off with saying that I am a complete newbie to NodeBB and Nginx, so work with me here xD

    Problem: Cannot find out how to redirect the default NodeBB ip (http://localhost:4567) to my domain with GoDaddy

    What is needed: Precise instructions on how to have people connect to the forums by typing in

    Edit: Added Files
    /etc/nginx/conf.d - Folder Empty
    /etc/ngin/sites-available - Contains a file named 'default'
    /etc/nginx/sites-enabled - Contains 2 files named 'default' and 'nodebb.conf'
    /etc/nginx/nginx.conf -
    /home/aphex/NodeBB/config.json -

    If you need any more information, feel free to ask,

  • Your config.json in NodeBB folder should be like that: "url": ""

    Nginx config:

    server { 
    listen 80; 
    location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
    proxy_set_header Host $http_host; 
    proxy_set_header X-NginX-Proxy true; 
    proxy_redirect off; 
    proxy_http_version 1.1; 
    proxy_set_header Upgrade $http_upgrade; 
    proxy_set_header Connection "upgrade"; 
  • I added what my Nginx.conf looks like in the original post, and ummm... I can't find what you put in my config.

    Thank you for the quick response.

  • Change "url":"http://localhost:4567", value in /home/aphex/NodeBB/config.json to "url":"",

    Delete default and nodebb.conf nginx configs, create a new file in sites-available called as anything then paste the config I gave above, then, sudo ln -s /etc/nginx/sites-available/yourconfigname /etc/nginx/sites-enabled/
    sudo service nginx restart

  • Ok, I have done what you have said... But now there is another problem.

    I have setup an A record pointing to my IP, like what several tutorials for this have said, but now it just redirects me to my regular homepage. I type in and the same webpage for appears.


    • Aphex
  • I think you have to create a CNAME for forums subdomain.

  • Sorry for all these questions, but do you know what to put for adding a CNAME record? I tried doing it and it still resulted in sending me to the default homepage 😕

  • You can add it in your DNS settings of your domain.

Suggested Topics