multiple url support ?

Technical Support
  • Hi everyone,
    I have a problem with URL on my nodebb server...
    I've 2 domain names for forum and they are linked to the forum directly (crazyfak.com and time-craft.fr),
    In the config.yml I’ve set the first URL in URL config (https://crazyfak.com)
    But when I’m connecting via the other domain name my header is incorrect. I tried to replace the domain to IP address and the header is incorrect for all of my domains (but not for direct ip address I imagine).
    NodeBB doesn’t support the multiple url? Do I must redirect in nginx second domain to first domain? (So in waiting for solution I redirected my second domain to first)

  • I believe you'll need an nginx server block for each domain. In the second domain, use the nginx rewrite directive to change the url, anywhere before the proxy_pass directive.


Suggested Topics


  • 0 Votes
    7 Posts
    507 Views

    Something of an update. I've reworked the code, and added some nice looking new color swatches (themes are based off Persona)

    https://sudonix.com/topic/284/theming-support-in-sudonix

  • 0 Votes
    1 Posts
    108 Views

    Hi. Sorry for my bad english.
    I installed Nodebb, I really liked the forum. I think Nodebb is the best forum in the world.
    But 1 big drawback upset me.
    I did not find a solution how to enable transliteration cyrillic urls. It is very important in terms of seo.
    For example:
    Now i have links as /topic/1/заработок-в-интернете
    I need /topic/1/zarabotok-v-internete

  • 0 Votes
    6 Posts
    4k Views

    @rod said in i want to play(mp4 file and mp4 url) in my web site how can i do it???:

    <a href="(.).mp4">[^<]</a>

    solved it~!!!!!

    ^,.^

    write as like this (mp4 play and / mp4 url play on my own web)

    in nodebb-plugin-ns-embed

    it works..

    ----if embed mp4 url----
    Watch🐤
    ."(http://[^"].?.mp4)".*

    Replace🐱
    <video id="$1" src="$1" controls style="width:800px"></video>
    <div><small><a href="$1" target="_blank">Download video</a></small></div>

    ------------------------- if mp4 file upload..---------- follow this
    Watch🐤
    <a href="/uploads/files/(.).mp4">[^<]</a>

    Replace🐱
    <video id="$1" src="/uploads/files/$1.mp4" controls style="width:800px"></video>
    <div><small><a href="/uploads/files/$1.mp4" target="_blank">Download video</a></small></div>

  • 0 Votes
    2 Posts
    1k Views

    A couple of years ago there was also a lower adoption of html5 elements. Having one h1 tag per page is still a good Idea in general, but it is allowable to have one h1 tag per containing article tag as well. Since this theme does not seem to use tags like article and aside (that I've seen in my quick check) I agree that there should only be one h1 tag per page which contains the page title or headline. The theme structure is otherwise good, but could definitely use with some contextual revamping of quite a few divs.

  • 0 Votes
    7 Posts
    4k Views

    @meetdilip said:

    @a_5mith

    A few doubts,

    Copy files from folder to which we have installed ?

    The github repo, so you'd have a folder called nodebb with all of the nodebb files in, then a folder called nodebb2, which also contains all the nodebb files.

    Share the command to change port no. please..

    ./nodebb setup, but change :4567 to something else.

    How to assign new folder / installation to database 2 ?

    You answered this in your next post, change the 0 in database to 1.

    Should we run ./nodebb setup after copying the files ( installed ? ) to a new folder ?

    You will need to yes in order to set it up, you'll also need to run npm install to get the dependencies installed in that location.