Getting 404 not found returned by nginx

What is the name of the domain?

https://chefai-prod.alkuino-apps.org

What is the error number?

404

What is the error message?

404 Not Found

What is the issue you’re encountering

I am very new in backend development. I setup the cloudflare to proxy my AWS ec2 flask app which has NGINX and gunicorn. Accessing localhost and private ipv4 address of my instance , all routes are fine like domain.org/api/users but when I changed to my domain bought in cloudflare and setup the ssl using certbot only the domain.org/" returning 200 others are 404.

What steps have you taken to resolve the issue?

restarting the nginx , adding the endpoint in the cloudflare still persist

Was the site working with SSL prior to adding it to Cloudflare?

Yes

What is the current SSL/TLS setting?

Full (strict)

What are the steps to reproduce the issue?

use https://chefai-prod.alkuino-apps.org/api/health in the browser or postman

Screenshot of the error

Looking ath the shared screenshot, I am afraid this error is coming from the origin host and would require further troubleshooting with service provider or within the configuration files of Nginx.

2 Likes

Thank you for your response. I don’t know what happened but after I redo the setup of my nginx and certbot I able to get response now of the other route of my api flask app.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.