Page Not Found after login



  • I am using nodebb with nginx, there is always an Not Found error after login, and login is successful.
    WX20190105-220315@2x.png

    The requested address become http://localhost/forum/http://localhost/forum, after login.

    And there is a 404 error console:
    GET http://localhost/forum/api/http://localhost/forum?_=1546743429781 404 (Not Found)

    In config file of nginx:

    server {
        listen 80;
    
        location /forum {
            proxy_pass http://localhost:4567/forum/;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }
    }
    

    And in config.json:

    {
        "url": "http://localhost:4567/forum/",
        "secret": "xxxxx-xxxxx-xxxx-xxx-xxxx",
        "database": "mongo",
        "port": "4567",
        "mongo": {
            "host": "127.0.0.1",
            "port": "27017",
        }
    }
    

  • Global Moderator

    Try one or both of the following:

    • removing the trailing slashes in config.json and your nginx config
    • changing proxy_pass http://localhost:4567/forum/; to proxy_pass http://localhost:4567

Log in to reply
 

Suggested Topics

| |