#1 2016-02-18 18:55:23

gonggo
Trusted Member
Registered: 2016-02-16
Posts: 0

Reverse proxy NJ not working

I have one in FR works but the NJ doesn't. Webserver on the node is working but activate.php return 502 bad gateway, here is the result

[email protected]:/tmp# sh proxy.sh 
============================================================================================================
 _        _______           _______  _        ______   _______  _______ _________ _______ __________________
( \      (  ___  )|\     /|(  ____ \( (    /|(  __  \ (  ____ \(  ____ )\__   __/(  ____ )\__   __/\__   __/
| (      | (   ) || )   ( || (    \/|  \  ( || (  \  )| (    \/| (    )|   ) (   | (    )|   ) (      ) (
| |      | |   | || | _ | || (__    |   \ | || |   ) || (_____ | (____)|   | |   | (____)|   | |      | |
| |      | |   | || |( )| ||  __)   | (\ \) || |   | |(_____  )|  _____)   | |   |     __)   | |      | |
| |      | |   | || || || || (      | | \   || |   ) |      ) || (         | |   | (\ (      | |      | |
| (____/\| (___) || () () || (____/\| )  \  || (__/  )/\____) || )      ___) (___| ) \ \_____) (___   | |
(_______/(_______)(_______)(_______/|/    )_)(______/ \_______)|/       \_______/|/   \__/\_______/   )_(
============================================================================================================

 Your host: DeepNet Solutions


Enter the domain you wish to proxy
somehostnameidlike.to.have (of course it's not the real one I typed)

You can use the following information for webserver
IPv4: 1xx.9x.1xx.2xx
IPv6: 2xxx:9xxx:x:1xx:8x::2xx
For domain somehostnameidlike.to.have
Is now proxied to 1xx.7x.x.1xx

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title>The page is temporarily unavailable</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <style type="text/css">
            /*<![CDATA[*/
            body {
                background-color: #fff;
                color: #000;
                font-size: 0.9em;
                font-family: sans-serif,helvetica;
                margin: 0;
                padding: 0;
            }
            :link {
                color: #c00;
            }
            :visited {
                color: #c00;
            }
            a:hover {
                color: #f50;
            }
            h1 {
                text-align: center;
                margin: 0;
                padding: 0.6em 2em 0.4em;
                background-color: #294172;
                color: #fff;
                font-weight: normal;
                font-size: 1.75em;
                border-bottom: 2px solid #000;
            }
            h1 strong {
                font-weight: bold;
                font-size: 1.5em;
            }
            h2 {
                text-align: center;
                background-color: #3C6EB4;
                font-size: 1.1em;
                font-weight: bold;
                color: #fff;
                margin: 0;
                padding: 0.5em;
                border-bottom: 2px solid #294172;
            }
            h3 {
                text-align: center;
                background-color: #ff0000;
                padding: 0.5em;
                color: #fff;
            }
            hr {
                display: none;
            }
            .content {
                padding: 1em 5em;
            }
            .alert {
                border: 2px solid #000;
            }

            img {
                border: 2px solid #fff;
                padding: 2px;
                margin: 2px;
            }
            a:hover img {
                border: 2px solid #294172;
            }
            .logos {
                margin: 1em;
                text-align: center;
            }
            /*]]>*/
        </style>
    </head>

    <body>
        <h1><strong>nginx error!</strong></h1>

        <div class="content">

            <h3>The page you are looking for is temporarily unavailable.  Please try again later.</h3>

            <div class="alert">
                <h2>Website Administrator</h2>
                <div class="content">
                    <p>Something has triggered an error on your
                    website.  This is the default error page for
                    <strong>nginx</strong> that is distributed with
                    EPEL.  It is located
                    <tt>/usr/share/nginx/html/50x.html</tt></p>

                    <p>You should customize this error page for your own
                    site or edit the <tt>error_page</tt> directive in
                    the <strong>nginx</strong> configuration file
                    <tt>/etc/nginx/nginx.conf</tt>.</p>

                </div>
            </div>

            <div class="logos">
                <a href="http://nginx.net/"><img
                    src="/nginx-logo.png"
                    alt="[ Powered by nginx ]"
                    width="121" height="32" /></a>

                <a href="http://fedoraproject.org/"><img 
                    src="/poweredby.png"
                    alt="[ Powered by Fedora EPEL ]"
                    width="88" height="31" /></a>
            </div>
        </div>
    </body>
</html>

Offline

Board footer

Powered by FluxBB