multiple url 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 theproxy_pass
directive.