Markus Jelsma
May 02, 2011 08:58AM
Anyone else having some thoughs on how to use the map in conjunction with
proxy_pass to set different hosts based on the first URI segment?

On Saturday 30 April 2011 12:52:42 Markus Jelsma wrote:
> Too many. I need to generate the mappings in an external program. I'd
> rather not generate as many different locations.
>
>
> Thanks
>
> > How many uri / backend mappings do you have? You could perform the
> > above in two straight forward location blocks, based on the uri.
> >
> > location /abc {
> >
> > proxy_pass http://host01:8080;
> > }
> >
> > ....
> >
> > Posted at Nginx Forum:
> > http://forum.nginx.org/read.php?2,194480,194616#msg-194616
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

--
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Using map and proxy_pass

Markus Jelsma April 29, 2011 11:48AM

Re: Using map and proxy_pass

Markus Jelsma April 29, 2011 11:50AM

Re: Using map and proxy_pass

gregr401 April 29, 2011 11:40PM

Re: Using map and proxy_pass

Markus Jelsma April 30, 2011 06:54AM

Re: Using map and proxy_pass

Markus Jelsma May 02, 2011 08:58AM

Re: Using map and proxy_pass

Francis Daly May 02, 2011 11:36AM

Re: Using map and proxy_pass

Igor Sysoev May 03, 2011 05:12AM

Re: Using map and proxy_pass

Markus Jelsma May 03, 2011 07:04AM

Re: Using map and proxy_pass

Igor Sysoev May 03, 2011 08:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 215
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