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

  • Home
  • SEARCH
  • 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 have URLs of the form http://domain/image/⟨uuid⟩/42x42/some_name.png . The Web server (nginx) is configured
I've got a standard Rails app with Nginx and Mongrel running at http://mydomain .
There's an option to hide the version so it will display only nginx, but
I've been researching modules for Nginx (my preferred webserver) to serve a Lisp webapp,
I'm running a django instance behind nginx connected using fcgi (by using the manage.py
I'm looking to convert the following mod_rewrite rule to the Nginx equivalent : RewriteRule
which would you recommend? which is faster, reliable? apache mod_python or nginx/lighttpd FastCGI?
I will ask this with an example - I have a setup, nginx, django,
How do you think, is it a good idea to write own web-server for
I'm writing an nginx module. From looking at other examples I'm registering my header

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.