search

Home  >  Q&A  >  body text

apache error analysis

"502 bad getway" appeared on the web server today

Use: service httpd restart Restarting apache is useless.
Finally, stop and then start: service httpd stop, service httpd start and that’s it.

Checked the access log and error log and found nothing unusual.

Are there any logs or instructions that can be used to discover or check what happened at that time?

================================================ ===============

Because I used Alibaba Cloud Cloud Shield, 502 should be the error code returned by Cloud Shield.

天蓬老师天蓬老师2794 days ago474

reply all(3)I'll reply

  • 某草草

    某草草2017-05-16 17:04:44

    502 Description Apache, as a proxy (or gateway), encountered an error when communicating with its proxy's back-end server. Specific error information is generally provided in the error log.

    reply
    0
  • 天蓬老师

    天蓬老师2017-05-16 17:04:44

    502 refers to invalid gateway or wrong gateway.
    Generally, when the web server receives the http data stream, it will be recorded. If everything in the Apache error log is normal, it may be caused by your server hanging up or suspended animation.

    reply
    0
  • 某草草

    某草草2017-05-16 17:04:44

    502 is first of all a server problem, wget http://localhost, see if it is 502, put a static file under the webroot and see if it can be accessed. If it can, then there is a problem with your application app

    reply
    0
  • Cancelreply