[solved] duplicate url when logging in
-
Hi, I have just installed nodedb, and I noticed when I login I am getting this error:
Not Found
You seem to have stumbled upon a page that does not exist. Return to the home page.When I look at the URL bar, it says:
https://members.barriegunclub.org/https://members.barriegunclub.org
So it seems after logging in, its putting the URL twice for some reason, I checked my URL setting in the settings and its correct. I also checked the config.json file and its correct.
It happens all the time when logging in
Any ideas?
Thanks
Duane -
Update your
config.json
.If
config.json
does not match the URL you are using, the redirect does this. -
My config.json matches though, that is what I am not understanding why its doing this.
config.json:
bgc@members:~/nodebb$ cat config.json { "url": "http://members.barriegunclub.org:4567", "secret": "2549a47a-cfe7-********", "database": "mongo", "mongo": { "host": "127.0.0.1", "port": "27017", "username": "nodebb", "password": "*********", "database": "nodebb", "uri": "" }, "port": "4567" }
-
@dcook no, your url value in config.json does not match the url at which you access your site. In config.json, you have the port :4567 appended at the end of it. Remove that. Then restart and try again.
-
@dcook the port in the
url
value doesn't tell nodebb what port to listen on, that's what theport
property is for. The port in the url value is only important if you access your site on a non-standard port. That is, the url showing up in your browser shows a port after the domain name.As we've already said. The url value in config.json should be set to exactly the url that shows up in your browser's address bar when you access the site.