Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (21 sloc) 0.968 kb
b1b67e0 @perusio * Major refactoring of the config. Upstream fallbacks. Nginx status
authored
1 # -*- mode: nginx; mode: flyspell-prog; ispell-local-dictionary: "american" -*-
2
3 ### Upstream configuration for PHP FastCGI.
4
5 ## Add as many servers as needed:
6 ## Cf. http://wiki.nginx.org/HttpUpstreamModule.
7 ## Note that this configuration assumes by default that keepalive
8 ## upstream connections are supported and that you have a Nginx
9 ## version with the fair load balancer.
10
11 ## Add as many servers as needed. Cf. http://wiki.nginx.org/HttpUpstreamModule.
12 upstream phpcgi {
13 ## If your version of Nginx doesn't have the fair load balancer:
14 ## https://github.com/gnosek/nginx-upstream-fair comment out the
15 ## following line.
16 fair;
17 server unix:/var/run/php-fpm.sock;
18 server unix:/var/run/php-fpm-zwei.sock;
19 ## Create a backend connection cache. Note that this requires
20 ## Nginx version greater or equal to 1.1.4.
21 ## Cf. http://nginx.org/en/CHANGES. Comment out the following
22 ## line if that's not the case.
23 keepalive 5;
24 }
Something went wrong with that request. Please try again.