From 25192b1d198bde8edeeaea9d99c84993ce0fc260 Mon Sep 17 00:00:00 2001 From: Diederik de Haas Date: Sat, 14 Dec 2013 02:06:40 +0100 Subject: [PATCH] Externalized the php handler. This makes it easy to switch the handler, especially if you have the fastcgi_pass directive more then one time. --- admin_manual/installation/installation_source.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin_manual/installation/installation_source.rst b/admin_manual/installation/installation_source.rst index 5fe4fb061..f35cf941b 100644 --- a/admin_manual/installation/installation_source.rst +++ b/admin_manual/installation/installation_source.rst @@ -162,6 +162,11 @@ Nginx Configuration .. code-block:: python + upstream php-handler { + server 127.0.0.1:9000; + #server unix:/var/run/php5-fpm.sock; + } + server { listen 80; server_name cloud.example.com; @@ -219,8 +224,7 @@ Nginx Configuration fastcgi_param SCRIPT_FILENAME $document_root$1; fastcgi_param PATH_INFO $2; fastcgi_param HTTPS on; - fastcgi_pass 127.0.0.1:9000; - # Or use unix-socket with 'fastcgi_pass unix:/var/run/php5-fpm.sock;' + fastcgi_pass php-handler; } # Optional: set long EXPIRES header on static assets