Can't open Nodebb with URL from config.json
-
@Evg-R said in Can't open Nodebb with URL from config.json:
@scottalanmiller If I remove record from hosts I still can not access nodebb with http://forum.example.com/ url. If its not nodebb's, nginx's, mongo's problem then what's the problem here?
I'm guessing you are attempting a loopback. Try accessing it from outside of your network (is there a reason you are keeping your URL secret so that we can't help test it, too?) I'm guessing you are accessing only from the inside so the proxy isn't behaving correctly.
-
@Evg-R said in Can't open Nodebb with URL from config.json:
@scottalanmiller If I remove record from hosts I still can not access nodebb with http://forum.example.com/ url. If its not nodebb's, nginx's, mongo's problem then what's the problem here?
Are you saying that you get NOTHING? Have you checked your DNS records, they have to point to your IP address. Given that you weren't port forwarding before, that makes me think you didn't set anything up yet. So when you go to the URL, it has nowhere to go.
-
@scottalanmiller I want to open just exactly with http://forum.example.com/ url locally on the server browser. I am not talking about setting up my real domain yet. I suppose I can setup any domain locally or even just http://test to open nodebb as home page but I am wondered why it does not work now
-
@Evg-R said in Can't open Nodebb with URL from config.json:
@scottalanmiller I want to open just exactly with http://forum.example.com/ url locally on the server browser. I am not talking about setting up my real domain yet. I suppose I can setup any domain locally or even just http://test to open nodebb as home page but I am wondered why it does not work now
In that case, everything is working, yes? You have to have either the hosts file entry or an identical DNS entry. And that you've tested, and it works. So at this point, it's all fixed, right?
-
@Evg-R said in Can't open Nodebb with URL from config.json:
but I am wondered why it does not work now
Because you turned it off by removing the necessary hosts entry.
-
I remember Apache server allows to browse locally on any url you named instalation folder and without hosts editing, But nginx not allowing this?
Just after installation I can not access http://forum.example.com with no hosts or dns setting for domain
And docs says I should access http://forum.example.com just after installation
No hosts or dns setup are mentioned!
-
@Evg-R said in Can't open Nodebb with URL from config.json:
I remember Apache server allows to browse locally on any url you named instalation folder and without hosts editing, But nginx not allowing this?
THis has nothing to do with that. Apache would behave exactly the same here. Without the hosts entry, the URL doesn't point to Nginx at all.
This is networking, Apache has no power to overcome a non-working network. That's physically impossible.
-
@Evg-R said in Can't open Nodebb with URL from config.json:
And docs says I should access http://forum.example.com just after installation
No hosts or dns setup are mentioned!Because this is so basic it is assume. It is assumed that you would have bought a domain, set it up, made the entry. This isn't a level of thing that would be explained in a software installation document.
All documents, ever written, that mention a URL mean "a working URL that points to the correct IP record for the machine in question." The documents don't mention installing your OS or making your networking work either, but obviously that also is required. DNS/Hostname is just the same, part of the basic networking.
-
@scottalanmiller ok thanks!
-
Do you have it all working now?