Welcome! Log In Create A New Profile

Advanced

proxy_pass redirection

Puneeth Kumar
July 22, 2015 05:28AM
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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

proxy_pass redirection

Puneeth Kumar July 22, 2015 05:28AM

Re: proxy_pass redirection

unclepieman July 22, 2015 08:20AM

Re: proxy_pass redirection

Puneeth Kumar July 23, 2015 06:26AM

Re: proxy_pass redirection

Francis Daly July 23, 2015 08:16AM

Re: proxy_pass redirection

Puneeth Kumar July 24, 2015 05:18AM

Re: proxy_pass redirection

Francis Daly July 24, 2015 06:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready