• Where can I find 502 error logs?

    • views 1271

    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!

Users (0) 0 of 5

Ratings of hosting providers by site tasks
Hosting price

We highly recommend not to purchase the cheapest hosting package. Usually, they come with a row of issues: the server is often down, the hardware is outdated, lousy and slow support, registration and payment errors, etc.

For your convenience, we have created a tool that can help you to choose the right hosting package for you just by answering a few simple questions.

CMS

CMS is a content management system. A lot of hosting providers offer so-called CMS optimized packages. However, this is a marketing trick because most CMSs do not have special software or hosting requirements.

Free trial

Trial period is a period of time, usually from 7 to 30 days, during which you can use the hosting services for free to test them.

Moneyback policy allows the customer to receive a refund for his order within a certain period after the purchase.

OS

OS means the operating system is installed on the server. We recommend to choose Linux hosting unless your website requires another OS.

Other

Bulletproof hosting - it’s a type of service that allows to host almost any type of content, even the restricted one (adult content, warez, spam etc). Bulletproof hosting providers do not remove your content in case someone reports an abuse.

Unlimited hosting - refers to companies that provide packages with unlimited disk space, bandwidth, number of domains, databases or email accounts, etc. This is usually a marketing trick but sometimes you can find something worth a try.

Secure hosting - it’s a type of service when the hosting provider is mostly responsible for the security of the user’s account: updates the software installed on their servers, provides an antivirus and malware scanner, firewalls and basic anti-DDoS protection, etc.

DDoS-protected hosting - companies that provide packages that include anti-DDoS protection. These packages are considerably more expensive than regular ones. Nevertheless, they’re totally worth their price because the company will ensure that your website is secured from cyber attacks.

Technologies

Most websites require MySQL and PHP installed on the server to work correctly. Almost all hosting providers support these technologies.

ASP.NET is a Microsoft web application development platform.

Control panel

The more comfortable the control panel is, the easier will it be for you to change the website and hosting account settings.

Most hosting providers that are in TOP20 in our rating offer user-friendly control panels, such as cPanel, Plesk or DirectAdmin. That’s why we recommend to pay attention to other, more important parameters, while choosing a hosting provider.

  • 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
    1

    NO BOTS

    We ban anonymous users since 2016
    2

    NO BRIBES

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

    EXPERT ADVICE

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