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

help setting it up... 500/404 errors #12

Open
rnvijay opened this issue Nov 22, 2020 · 1 comment
Open

help setting it up... 500/404 errors #12

rnvijay opened this issue Nov 22, 2020 · 1 comment

Comments

@rnvijay
Copy link

rnvijay commented Nov 22, 2020

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!

@davellanedam
Copy link
Owner

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.

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