View Single Post
Old 27th February 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

Here's my php directive in nginx.conf I use on my net/nfsen server:
Code:
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        location ~ \.php$ {
            root           /var/www/htdocs/nfsen;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
            fastcgi_param  HTTPS on;

        }
And, here's my complete php-fpm.conf, used for multiple virtual servers in nginx:
Code:
[global]
[www]
user = www
group = www

listen = 127.0.0.1:9000

pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3

chroot = /var/www

Last edited by jggimi; 27th February 2015 at 12:35 AM. Reason: typographic (columns in code block)
Reply With Quote