• Where can I find 502 error logs?

    • views 1210

    I bought hosting with Apache and Nginx. I can`t find error "502 Bad Gateway nginx"in the logs. Tell me how to do it and where to look?

    Solutions (2)
    First, please tell us what panel you use. As a rule, logs NGINX and APACHE are added to the same file, or more precisely to 2 files - error.log and access. You need the second file. It may be located in the registers, logs, etc., depending on the panel.
    If Page 502 status is issued from the nginx web server, which in your case is the front-end server, it receives the request and sends it to the apache (back-end server). If the response from apache back on nginx does not arrive, then nginx returns you to the page with a 502 error. The reason for this should be looked for in the nginx logs, because this where mistake is detailed. Usually on shared-hosting, the hoster gives access only to the apache logs, because nginx logs may contain proprietary information that doesn`t help you. Most likely, in the nginx logs, about 502-error  you`ll see the sudden termination of apache while processing your request.

    Or the apache doesn`t work. First of all you need to talk to the hoster technical support about the error.
    Answers (1)
    502 error indicates that there is no response from the Apache for too long. Either increase proxy_read_timeout, or see the logs.
We do our best for you!
Rate the article
Tell the world about it

Users (0) 0 of 5

  • In order to provide you with the best online experience this website uses personal data (cookies, IP, email, photo, name, website, etc). By using our website, you agree to our use of your personal data. More info we get commissions from the hostings, but our ratings are honest and the reviews are real.

  • Rewards for reviews