Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Nginx Setup w php fpm

sirpengi edited this page Jun 11, 2011 · 1 revision
server {
    listen 80;
    server_name _;
    root /path/to/foodtrucks/web;
    location / {
        index index.php;
        try_files $uri $uri/ /index.php?$args;
    }
    location ~ \.php {
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;
    }
}
Clone this wiki locally