[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


  • GNU/Linux

    Update your config.json.

    If config.json does not match the URL you are using, the redirect does this.

    669e3645-721a-4060-b0db-43ca7e5bbdf2-image.png



  • My config.json matches though, that is what I am not understanding why its doing this.

    Capture.PNG

    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"
    }
    
    

  • Global Moderator

    @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.



  • That is the port nodebb is using though, is that not important?
    During the setup it defaulted to that port


  • Global Moderator

    @dcook the port in the url value doesn't tell nodebb what port to listen on, that's what the port 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.



  • @PitaJ Perfect, that solved it, thank you for the more information, I didn't realize it was referring to the port as well.

    You can mark this as resolved!


Log in to reply
 

Suggested Topics

  • 2
  • 4
  • 3
  • 3
  • 2
| |