cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Etc


Reference














.

middleware:web:nginx:conf:phpfpm.html



Nginx

Nginx Sample Configuration of php-fpm

/etc/nginx/conf.d/sample.conf

server {
    listen  80;
    server_name localhost 192.168.0.10;
 
    root    /var/www;
    index   index.php index.html;
 
    location ~ \.php$ {
        fastcgi_pass    127.0.0.1:9000;
        fastcgi_index   index.php;
        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include         fastcgi_params;
    }
 
    location ~ /\.ht {
        deny  all;
    }
 
}



middleware/web/nginx/conf/phpfpm.html.txt ยท Last modified: 2017/05/06 by admin

Page Tools