FIXED| How to Fix “502 Bad Gateway”Nginx Error| Step By Step☑️
Today in this video you will learn about How to Fix “502 Bad Gateway”Nginx Error| Step By Step process
Many times we can browse the web and find a 502 bad gateway error at Nginx. There are a few reasons why you will find this message in your webserver log, and here we will teach you how to fix it.
What is a 502 Bad Gateway Error? [EXPLAINED]
Every time you visit a website your browser sends a request to a web server. The web server receives and processes the request, and then sends back the requested resources.
502 bad gateway error indicate that the request was accepted, but the server prevented the fulfillment of the request. In this case, a 502 bad gateway error specifically means that one server, while acting as a gateway or proxy, has received an invalid response from an inbound server.
Before getting deep into all of this options, you must understand what does the 502 Bad Gateway error message mean. So, the error is and HTTP Status Code error and it’s happening at the gateway. What the hell is a gateway? In simple words, a gateway, is like an access point, a bridge that communicate one service with another, in this case the gateway can be a service/application that is working and receiving requests from Nginx web server.
Nginx as Proxy for Apache: In this case, the gateway is Apache. When you use Nginx as proxy for Apache, if apache dies or it’s not well configured, it can cause this 502 Bad Gateway error.
How to Fix the 502 Bad Gateway Error? [STEP by STEP]
A 502 bad gateway error is typically a problem with the network/server so we will try to solve this from server end/Root level.
Follow these given steps to fix 502 Bad Gateway Error:
Step::1 Login to your WHM(Root)
Step::2 Go to Service Status
Step::3 Now check for httpd service status
Step::4 Restart Apache(httpd) from Easy Apache4
Step::4 Go to EasyApache4 and uninstall and install any module
Uninstallation and installation process will bring back the Apache in functional mode.
You can also restart Apache by using SSH and typing the command like the one given below:
————————————-
service httpd restart
————————————
For more information about Redserverhost Hosting and the services we provide see here:
https://redserverhost.com
👉Don’t Forget! SUBSCRIBE for more interesting Tips!
If you enjoyed this video, please consider following us on Facebook and Twitter.
Facebook Page- https://facebook.com/redserverhost
Twitter Page- https://twitter.com/redserverhost.com
Thanks for watching my Video. Please Like Share and Subscribe to My Channel
by Red Server Host
linux web server
why you very over confident on this video!!!
useless
gaandu youtube channel
useless…
Сказочный …
…ну вы поняли
Shiiiiiit, this is the worst youtube tutorial, I've ssen poop
отличное "решение"
fucking marketing video.. delete yourself
How to Fix “502 Bad Gateway”Nginx Error – Step By Step
#tail -f /var/log/nginx/error.log
2020/06/10 14:06:54 [error] 32693#0: *70 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 127.0.0.1, server: 127.0.0.1, request: "POST /app/xml_cdr/v_xml_cdr_import.php?uuid=a_2ef49d1e-ab1b-11ea-93da-c9ee839369ae HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "127.0.0.1"
#service php5-fpm restart
#/etc/init.d/nginx restart
fixed up
Can u open viwawa.com?
Nincs a vilagon az a kezdo aki nem inditotta volna ujra a szervert…
Every Indian YouTube tutorial ever
Im the first one to comment