phalcon-micro-rest-api-skeleton
phalcon-micro-rest-api-skeleton copied to clipboard
help setting it up... 500/404 errors
Hi, i'm using nginx - i first had the root pointed to /public folder and got 500 error while accessing via postman or compose test. I changed it to root of application and now i'm gettign 404. When i visit the page https://api.mydomain.com - i get an error on page mod_rewrite need to be enabled... I do have equavelent mod_rewrite block in ngixn i believe like below
try_files $uri $uri/ @rewrite;
location @rewrite {
rewrite ^/(.*)$ /index.php?_url=/$1;
}
on the environment config file i've not made any change except DB values, i've left the default values ( how do i generate keys?) 'authentication' => [ 'secret' => 'your secret key to SIGN token', // This will sign the token. (still insecure) 'encryption_key' => 'Your ultra secret key to ENCRYPT the token', // Secure token with an ultra password 'expiration_time' => 86400 * 7, // One week till token expires
thanks for any help!
Hey! Thanks for sharing this. Did you install the phalconPHP extension in nginx? First make sure a valid phalcon installation is there, just in case. Then you can move the project to that folder and start playing around. If you did then you will need to check nginx configuration, maybe something is missing there. Thanks again for providing context and sharing.