Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error Bad Gateway NGINX 502 PHP-FPM fastcgi

My boss was messing around with this page and suddenly it stopped working and started giving us a 502 Bad Gateway error. Is there anything you can see that explains why this happened?

<ul id="menu">
<li><a href="?p=tenuta_a_deo.html">About A Deo</a></li>

<li>
    <a href="?p=our_wines">Our Wines</a>

    <ul>
        <li><a href="?p=our_wines/tenuta_a_deo_red.html">Tenuta A Deo - Red</a></li>

        <li><a href="?p=our_wines/tenuta_a_deo_white.html">Tenuta A Deo - White</a></li>

        <li><a href="?p=our_wines/tenuta_a_deo_oil.html">Tenuta A Deo - Oil</a></li>

        <li><a href="?p=our_wines/popova_kula.html">Popova Kula</a></li>

        <li><a href="?p=our_wines/kokino.html">Kokino</a></li>
    </ul>
</li>



<li><a href="?p=lucca_olive_oil.html">Lucca Olive Oil</a></li>



<li>
    <a href="?p=vacation_rentals">The Farm</a>
    <ul>
        <li><a href="?p=vacation_rentals/villa_lucca.html">Villa Lucca</a></li>
        <li><a href="?p=vacation_rentals/casa_casciani.html">Casa Casciani</a></li>
        <li><a href="?p=vacation_rentals/tenuta_a_deo.html">Tenuta A Deo</a></li>
        <li><a href="?p=vacation_rentals/tourist_information.html">Tourist information</a></li>

    </ul>
</li>

<li><a href="?p=how_to_purchase.html">How to Purchase</a></li>


<li><a href="?p=gallery.php">Gallery</a></li></ul>
like image 576
Bjorninn Avatar asked Jul 06 '10 11:07

Bjorninn


People also ask

Does 502 Bad Gateway mean blocked?

Does 502 bad gateway mean blocked? If your computer screen displays an error message stating “502 bad gateway”, it means the server which is acting as a proxy or gateway is not getting adequate response from another server. But this is a generic error, you won't be able to find out the root cause.

What is PHP FPM used for?

Q: What is PHP-FPM used for? A: PHP-FPM (FastCGI Process Manager) is a web tool used to speed up the performance of a website. It is much faster than traditional CGI based methods and has the ability to handle tremendous loads simultaneously.


2 Answers

A 502 Bad Gateway error is not caused by static HTML like you just displayed.

The server was probably having an internal error or an error communicating with other servers - maybe there was a (temporary) overload, or another server/service was not reachable. Does it still happen when you clear your cache or use another browser/computer?

Can you tell us more about your webserver, and its links to other servers/services?

like image 172
Konerak Avatar answered Sep 27 '22 03:09

Konerak


The cause for the 502 is not on the page. Looks more like a configuration issue, either on the server or on a network component (router).

like image 27
Andreas Dolk Avatar answered Sep 26 '22 03:09

Andreas Dolk