FastCGI in various servers

Hello,

I have a question about fastcgi. If I use 5 web server with fastcgi,
with a script that works with session variables, if it balances the
request to another different server. How to access the session
variables? As will be stored in another /tmp/SESSION_XXX (other
machine).

I can use in nginx fastcgi servers located on another machine, some
configuration examples?. Thanks.

Regards,
Anthony.

Hi,

On 15/12/2010 22:00, Antonio wrote:

I have a question about fastcgi. If I use 5 web server with fastcgi, with a
script that works with session variables, if
it balances the request to another different server. How to access the session
variables? As will be stored in another
/tmp/SESSION_XXX (other machine).

You have either to store your sessions on a common shared
backend (moderns web scripting languages allows storing
sessions in memcached or database, but you can also use NFS
for instance, ..), or just reduce the odd to loose the
sessions (for instance by using the ip_hash option for the
upstream backend, so clients will stick to the same server
unless nginx detects this servers isn’t available anymore).

I can use in nginx fastcgi servers located on another machine, some
configuration examples?. Thanks.

Maybe there ?

El 15/12/10 23:34, Benjamin Pineau escribi:

sessions (for instance by using the ip_hash option for the
upstream backend, so clients will stick to the same server
unless nginx detects this servers isn’t available anymore).

I can use in nginx fastcgi servers located on another machine, some
configuration examples?. Thanks.
Maybe there ?
GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub
GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub
GitHub - nginxinc/nginx-wiki: ARCHIVED -- Source for the now archived NGINX Wiki section of https://www.nginx.com · GitHub

Hi

Thanks !

Regards