Can not using websocket with nginxProxy HTTPS requests to a HTTP backend with NGINXTrouble with nginx and...

lead or lag function to get several values, not just the nth

Can throughput exceed the bandwidth of a network

What are the issues with an additional (limited) concentration slot instead of Bladesong?

I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?

Is the withholding of funding notice allowed?

What could trigger powerful quakes on icy world?

Are paired adjectives bad style?

Non-Italian European mafias in USA?

Wrap all numerics in JSON with quotes

What does @RC mean in SSDT SQL Server Unit Testing?

School performs periodic password audits. Is my password compromised?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

If a set is open, does that imply that it has no boundary points?

A right or the right?

Can we carry rice to Japan?

The need of reserving one's ability in job interviews

When was drinking water recognized as crucial in marathon running?

Is it possible to convert a suspension fork to rigid by drilling it?

Toast materialize

What is this waxed root vegetable?

Is there a math equivalent to the conditional ternary operator?

I can't die. Who am I?

Reason why dimensional travelling would be restricted

What Does the Heart In Gyms Mean?



Can not using websocket with nginx


Proxy HTTPS requests to a HTTP backend with NGINXTrouble with nginx and serving from multiple directories under the same domainnginx redirect issue with upstream configurationsvn using nginx Commit failed: path not foundNginx subversion commit failureNginx/Apache: set HSTS only if X-Forwarded-Proto is httpsNginx, reverse proxy to 2 different Joomla sitesnginx rewrite throw 404 with last and breakNginx WebSocket reverse proxy keeps return 200 instead of 101Cannot connect through WebSockets with nginx proxy













2















I am using Activemq as broker, client side is Paho js to send websocket request(ws protocol).
Everything work fine on server, but when the server start to set nginx as proxy, the client can not connect to server( but I can connect to Activemq UI web). My nginx setting is:



map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 16614;
server_name mq.mysite.com;
access_log /var/log/docker/nginx/access_activemq.log activemq_custom;

location / {
proxy_pass http://192.168.10.13:16614;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

}
}


I am using 80 port to listen ActiveMQ webUI, and 16614 to ws protocol.



Is there any missing step?










share|improve this question
















bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Oh, so strange, it works after restart Nginx docker container. nginx -s reload does not work.

    – Rong Nguyen
    Jun 8 '16 at 8:07











  • Write this in your own answer not in a comment. Describe what the cause of problem was and how you resolved it. After 48 hours you can accept your own answer.

    – rda
    Jun 8 '16 at 10:32
















2















I am using Activemq as broker, client side is Paho js to send websocket request(ws protocol).
Everything work fine on server, but when the server start to set nginx as proxy, the client can not connect to server( but I can connect to Activemq UI web). My nginx setting is:



map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 16614;
server_name mq.mysite.com;
access_log /var/log/docker/nginx/access_activemq.log activemq_custom;

location / {
proxy_pass http://192.168.10.13:16614;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

}
}


I am using 80 port to listen ActiveMQ webUI, and 16614 to ws protocol.



Is there any missing step?










share|improve this question
















bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • Oh, so strange, it works after restart Nginx docker container. nginx -s reload does not work.

    – Rong Nguyen
    Jun 8 '16 at 8:07











  • Write this in your own answer not in a comment. Describe what the cause of problem was and how you resolved it. After 48 hours you can accept your own answer.

    – rda
    Jun 8 '16 at 10:32














2












2








2








I am using Activemq as broker, client side is Paho js to send websocket request(ws protocol).
Everything work fine on server, but when the server start to set nginx as proxy, the client can not connect to server( but I can connect to Activemq UI web). My nginx setting is:



map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 16614;
server_name mq.mysite.com;
access_log /var/log/docker/nginx/access_activemq.log activemq_custom;

location / {
proxy_pass http://192.168.10.13:16614;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

}
}


I am using 80 port to listen ActiveMQ webUI, and 16614 to ws protocol.



Is there any missing step?










share|improve this question
















I am using Activemq as broker, client side is Paho js to send websocket request(ws protocol).
Everything work fine on server, but when the server start to set nginx as proxy, the client can not connect to server( but I can connect to Activemq UI web). My nginx setting is:



map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 16614;
server_name mq.mysite.com;
access_log /var/log/docker/nginx/access_activemq.log activemq_custom;

location / {
proxy_pass http://192.168.10.13:16614;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

}
}


I am using 80 port to listen ActiveMQ webUI, and 16614 to ws protocol.



Is there any missing step?







nginx docker websocket activemq






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 8 '16 at 7:30







Rong Nguyen

















asked Jun 8 '16 at 7:14









Rong NguyenRong Nguyen

1115




1115





bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Oh, so strange, it works after restart Nginx docker container. nginx -s reload does not work.

    – Rong Nguyen
    Jun 8 '16 at 8:07











  • Write this in your own answer not in a comment. Describe what the cause of problem was and how you resolved it. After 48 hours you can accept your own answer.

    – rda
    Jun 8 '16 at 10:32



















  • Oh, so strange, it works after restart Nginx docker container. nginx -s reload does not work.

    – Rong Nguyen
    Jun 8 '16 at 8:07











  • Write this in your own answer not in a comment. Describe what the cause of problem was and how you resolved it. After 48 hours you can accept your own answer.

    – rda
    Jun 8 '16 at 10:32

















Oh, so strange, it works after restart Nginx docker container. nginx -s reload does not work.

– Rong Nguyen
Jun 8 '16 at 8:07





Oh, so strange, it works after restart Nginx docker container. nginx -s reload does not work.

– Rong Nguyen
Jun 8 '16 at 8:07













Write this in your own answer not in a comment. Describe what the cause of problem was and how you resolved it. After 48 hours you can accept your own answer.

– rda
Jun 8 '16 at 10:32





Write this in your own answer not in a comment. Describe what the cause of problem was and how you resolved it. After 48 hours you can accept your own answer.

– rda
Jun 8 '16 at 10:32










1 Answer
1






active

oldest

votes


















0














The problem come from Docker, nginx -s reload command sometimes does not work exactle, I have to restart Nginx container.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "2"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f782632%2fcan-not-using-websocket-with-nginx%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The problem come from Docker, nginx -s reload command sometimes does not work exactle, I have to restart Nginx container.






    share|improve this answer




























      0














      The problem come from Docker, nginx -s reload command sometimes does not work exactle, I have to restart Nginx container.






      share|improve this answer


























        0












        0








        0







        The problem come from Docker, nginx -s reload command sometimes does not work exactle, I have to restart Nginx container.






        share|improve this answer













        The problem come from Docker, nginx -s reload command sometimes does not work exactle, I have to restart Nginx container.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 9 '16 at 4:13









        Rong NguyenRong Nguyen

        1115




        1115






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f782632%2fcan-not-using-websocket-with-nginx%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

            Список ссавців Італії Природоохоронні статуси | Список |...

            Українські прізвища Зміст Історичні відомості |...