Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 970953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:53:05+00:00 2026-05-16T02:53:05+00:00

The Nginx approach to HTTP PUSH is relatively simple. There are 3 party involve:

  • 0

The Nginx approach to HTTP PUSH is relatively simple. There are 3 party involve: Subcriber (receiver), Publisher (sender), and the server itself act as multicast server.

Nginx can also separate into different channel with different channel ID that user can access.

But I still don’t know how to authorize/limit content only for logged in user, or send only the data needed to that user, instead of multicast it to anyone know about the channel ID.

If possible, are there anyway to use only a channel and send data to user selectively?

Currently i am running on the same database, but the Sender is writen in ruby, using nginx, and the front end is writen using PHP/GWT.

Thank you very much

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:53:06+00:00Added an answer on May 16, 2026 at 2:53 am

    This is my setup:
    >

                  location = /broadcast/sub {
                       default_type  text/json;
                      set $push_channel_id $arg_channel;
                      push_subscriber;
                      push_subscriber_concurrency broadcast;
                      push_channel_group broadcast;
                  }
    
                  location = /broadcast/pub {
                      set $push_channel_id $arg_channel;
                      push_publisher;
                      push_min_message_buffer_length 5;
                      push_max_message_buffer_length 20;
                      push_message_timeout 10s;
                      push_channel_group broadcast;
                  }
    
    I send new messages with curl
    
        $ch = curl_init($pub_url);
        $data = array('status' => $message);
        curl_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type:
    text/json"));
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        $return = curl_exec($ch);
        curl_close($ch);
    
    Thanks for any hints...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I comiled nginx like to enable push module(http://pushmodule.slact.net/) to implements nginx comet server. When
On nginx website they are two module for HTTP PUSH. Here they are: http://pushmodule.slact.net/
server declaration in my nginx.conf: listen 1.2.3.4:443 ssl; root /var/www/myapp/current/public; ssl on; ssl_certificate /etc/nginx-cert/server.crt;
I've set up Nginx as my main web server and have two Mochiweb based
I just installed Nginx listening on 8083 I can get a HTTP response when
in nginx conf file,i use: location ~ \.jsp { proxy_pass http://127.0.0.1:86; } to parse
I recently discovered NginX, and decided to try it out on my server. I
Does NGINX or Apache benefit from a server that has either: Multi-cores, or Multiple
I'm using Nginx as webserver, with a reverse proxy to a gunicorn django server.
I'm parsing access logs generated by Apache, Nginx, Darwin (video streaming server) and aggregating

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.