[Pkg-owncloud-commits] [owncloud-doc] 01/49: Externalized the php handler.

David Prévot taffit at moszumanska.debian.org
Fri Jan 17 02:41:29 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud-doc.

commit 25192b1d198bde8edeeaea9d99c84993ce0fc260
Author: Diederik de Haas <github at cknow.org>
Date:   Sat Dec 14 02:06:40 2013 +0100

    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 5fe4fb0..f35cf94 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list