wassapaks / phalconphp-rest-jwt-acl

Base project for Phalconphp REST JWT and ACL
Other
29 stars 14 forks source link

404 Not Found #3

Closed raymundcuizon-dev closed 7 years ago

raymundcuizon-dev commented 7 years ago

Hi Sir nerfe, I'm having issue on php 7.

after I setup everything. and try to run the http://api.phalconjwt it will return

{ "status": "error", "data": null, "message": "Route not Found!", "error": { "errorMessage": "Route not Found!" } }

but when try to add a route it will return 404

404 Not Found

404 Not Found


nginx/1.10.0 (Ubuntu)

I have phalcon 3.0.4.

Thanks you.

raymundcuizon-dev commented 7 years ago

The issue was not in my php version. but on my nginx virtualhost config.

i fixed this issue by changing my config. From location / {

First attempt to serve request as file, then

          # as directory, then fall back to displaying a 404.
            try_files $uri $uri/ =404;
    }

To location / {

First attempt to serve request as file, then

   # as directory, then fall back to displaying 
    try_files $uri $uri/ /index.php?_url=$uri&$args;
}