fastcgi servers

Rapsey rapsey at gmail.com
Sat Nov 24 10:34:55 MSK 2007


upstream servercom {
      server 127.0.0.1:44440;
      server 127.0.0.1:44441;
      server 127.0.0.1:44442;
      server 127.0.0.1:44443;
      server 127.0.0.1:44444;
   }


location ~ \.app$ {
          fastcgi_pass servercom;
          fastcgi_index stream.app;
          fastcgi_param SCRIPT_FILENAME /var/www/htdocs$fastcgi_script_name;
          include /etc/nginx/fastcgi.conf;
       }



On Nov 23, 2007 9:54 PM, rkmr.em at gmail.com <rkmr.em at gmail.com> wrote:
> hi guys how do i add more than one fastcgi server in the fastcgi module?
> thanks
> mark
>
>  my config is like this now:
>
>     server {
>         listen       8080;
>         server_name  localhost;
>
>         #charset koi8-r;
>
>         #access_log  logs/host.access.log  main;
>
>         location /static {
>             root   /home/mark/work/groupcards;
>         }
>         location / {
>             root   /home/mark/work/groupcards;
>
>         fastcgi_pass 127.0.0.1:8083;
>
>         fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
>         fastcgi_param PATH_INFO       $fastcgi_script_name;
>         fastcgi_param QUERY_STRING    $query_string;
>         fastcgi_param CONTENT_TYPE    $content_type;
>         fastcgi_param CONTENT_LENGTH  $content_length;
>         fastcgi_param REQUEST_METHOD  $request_method;
>         fastcgi_param REMOTE_ADDR     $remote_addr;
>         fastcgi_param REMOTE_PORT     $remote_port;
>         fastcgi_param SERVER_PROTOCOL $server_protocol;
>         fastcgi_param SERVER_ADDR     $server_addr;
>         fastcgi_param SERVER_PORT     $server_port;
>         fastcgi_param SERVER_NAME     $server_name;
>     }
>
>     }
>
>





More information about the nginx mailing list