Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transparently fails to work #9

Open
gilbahat opened this issue May 5, 2019 · 1 comment
Open

transparently fails to work #9

gilbahat opened this issue May 5, 2019 · 1 comment

Comments

@gilbahat
Copy link

gilbahat commented May 5, 2019

Hi,

I have successfully compiled a binary with these modules:
$ ./nginx -V
nginx version: nginx/1.15.12
built by clang 10.0.1 (clang-1001.0.46.4)
configure arguments: --with-stream --add-module=./nginx-module-sts --add-module=./nginx-module-stream-sts

conf file:
events { }

error_log /tmp/error.log debug;

http {
server {
listen 127.0.0.1:1937;

            location /status {
             stream_server_traffic_status_display;
             stream_server_traffic_status_display_format html;
            }
    }

}

stream {

    server_traffic_status_zone;

    upstream some_backend {
            least_conn;
            server localhost:21110;
            server localhost:21111;
            server localhost:21112;
    }

    server {
            listen 10000;
            proxy_pass storescp_backend;
            proxy_timeout 5s;
            proxy_connect_timeout 1s;
    }

}

however, when I try to GET any of the endpoints, I get a 501:

$ wget http://localhost:1937/status/format/html
--2019-05-05 11:41:23-- http://localhost:1937/status/format/html
Resolving localhost (localhost)... 127.0.0.1, ::1
Connecting to localhost (localhost)|127.0.0.1|:1937... connected.
HTTP request sent, awaiting response... 501 Not Implemented
2019-05-05 11:41:23 ERROR 501: Not Implemented.

unfortunately there is no error in the logs either.

please advise

@ckozler
Copy link

ckozler commented Jul 26, 2019

For me I was missing

vhost_traffic_status_zone;
stream_server_traffic_status_zone;

in nginx.conf right under http {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants