Welcome! Log In Create A New Profile

Advanced

Re: is there a way to force a specific ip address to always go to the same server in upstream?

Momchil Ivanov
September 15, 2009 06:42PM
На Tuesday 15 September 2009 08:04:57 Igor Sysoev написа:
> http {
> map $remote_addr $back {
> default backend;
> 127.0.0.1 127.0.0.1:8003;
> }
>
> upstream backend {
> server 127.0.0.1:8001;
> server 127.0.0.1:8002;
> server 127.0.0.1:8003;
> }
>
> server {
> listen 8080;
> server_name localhost;
>
> location / {
> proxy_pass http://$back$request_uri;

Are you having any plans on implementing the same stuff for fastcgi_pass? May
I pass a variable for the backend name to fastcgi_pass: fastcgi_pass
$backend_name? I would like to be able to choose different fastcgi upstreams
on some conditions (as the above one for example).

Thanks,
Momchil
Subject Author Posted

is there a way to force a specific ip address to always go to the same server in upstream?

iberkner September 14, 2009 09:52PM

Re: is there a way to force a specific ip address to always go to the same server in upstream?

Joshua Zhu September 14, 2009 10:08PM

Re: is there a way to force a specific ip address to always go to the same server in upstream?

iberkner September 15, 2009 12:06AM

Re: is there a way to force a specific ip address to always go to the same server in upstream?

Joshua Zhu September 15, 2009 01:00AM

Re: is there a way to force a specific ip address to always go to the same server in upstream?

Igor Sysoev September 15, 2009 01:12AM

Re: is there a way to force a specific ip address to always go to the same server in upstream?

Momchil Ivanov September 15, 2009 06:42PM

Re: is there a way to force a specific ip address to always go to the same server in upstream?

Maxim Dounin September 15, 2009 07:00PM

Re: is there a way to force a specific ip address to always go to the same server in upstream?

Momchil Ivanov September 16, 2009 05:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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