Score:0

nginx giving 500 for images and for some api's

jp flag

We have a site deployed on crafter, when we access it directly with "IP:port" it works fine. But when we are accessing it with Nginx reverse proxy, it gives 500 for images and other api's.

Also it is not giving any error in nginx error.log

Request you to please help, we are stuck here.

in flag
Increase log verbosity. The only way to solve 500 errors is the error log.
Score:0
cn flag

There can be a multitude of reasons as to why you are seeing 500 code errors

As suggested in the comment, you need to increase the log verbosity to get more details about the error

Based on your nginx configuration, the error file can be /var/log/nginx/error.log or a different one. Alternatively you can check the logs using journalctl depending on the service management system in place

It could potentially be a permission denied issue when accessing the static files so you need to make sure the user spawning the nginx processes has the correct access level

Please share the nginx configuration file and the permissions associated to the files to be served

Satish Lamak avatar
jp flag
Crafter site required cookies to set, nginx rewrite rule solved my problem. @Tewfik thanks for your input
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.