Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login is unavailable. Nginx 404. What additional configuration do you need? #49

Closed
ghs619 opened this issue Aug 14, 2017 · 3 comments
Closed

Comments

@ghs619
Copy link

ghs619 commented Aug 14, 2017

Request URL:http://127.0.0.1/fusio/public/index.php/consumer/login

Request Method:POST
Status Code:404 Not Found
Remote Address:127.0.0.1:80
Referrer Policy:no-referrer-when-downgrade

@chriskapp
Copy link
Member

I close this issue in favor of #50 since it looks like it is the same issue

@ghs619
Copy link
Author

ghs619 commented Aug 15, 2017

location / {
        try_files $uri $uri/ /index.php;
        index  index.html index.htm index.php;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

    # proxy the PHP scripts to Apache listening on 127.0.0.1:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://127.0.0.1;
    #}

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
       
    }

Nginx has been configured, but it is still unable to log in. Show 404

@chriskapp
Copy link
Member

mhh ok, do you have set the correct root path? In general I would recommend to set the web-root to the public/ folder of Fusio so that you can access the API with http://127.0.0.1/index.php/consumer/login

root /path/to/fusio/public

Then you have also to adjust the psx_url in the configuration.php file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants