proxy_pass redirection

Payam Chychi pchychi at gmail.com
Wed Jul 22 12:18:42 UTC 2015



On Wednesday, July 22, 2015 at 2:26 AM, Puneeth Kumar wrote:

> Hi,
> I'm new to Nginx and we are using for reverse proxy.
> 
> I'm able to configured Nginx and it's working but I've challenge in
> configuring it for Dynamic proxy_pass. I've tried to use wild characters
> in proxy_pass it's not working, please help.
> 
> E.G.
> location
> server {
> #listen 443;
> listen 8080;
> #server_name analyticstest.isyntax.net;
> server_name IP;
> 
> /api/ingestion/ {
> proxy_set_header HOST $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_buffers 8 512k;
> proxy_buffer_size 2024k;
> proxy_busy_buffers_size 2024k;
> proxy_read_timeout 3000;
> add_header Cache-Control no-cache;
> #rewrite ^/api/query/(.*)$ /$1;
> proxy_pass http://IP:8881/ingestion/v1.0/streams/NGINEX; (IP:
> hostname of the server where the service
> system)
> 
> In my case, in the above link last word NGINEX can be any other name, so
> how I can dynamically configure for that word.
> I tried using wild characters like *, . & _ are not working. Please
> help.
> 
> Thank you
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 
> 




Hi,

Add a cookie to the session and have the back end route to proper path post cookie check

  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20150722/32a12b2f/attachment.html>


More information about the nginx mailing list