• Where can I find 502 error logs?

    • views 1244

    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 receive some monetary compensation from hosting companies, however, this does not influence their positions in our ratings, test results, the direction or conclusions of our reviews in any way. We use this amount to provide better services, improve our website, to cover hosting testing account fees and team salaries. Ok

  • easy


    We ban anonymous users since 2016


    We do not delete reviews for money
    We do not sell rating positions
    We make cheating attempts almost impossible


    We test the hosting thoroughly and publish professional overviews
  • Rewards for reviews