Add nginx configuration infos

@stefkey

This is my own nginx cofiguration. Included files following below

Vhost

server {
    listen       80;
    server_name  project.sma;

    root       /Users/soren/Sites/project/Web;

    include /usr/local/etc/nginx/conf.d/flow-3.0-settings;
    include /usr/local/etc/nginx/conf.d/flow-context-development;

    access_log  /usr/local/etc/nginx/logs/default.access.log  main;

    include   /usr/local/etc/nginx/conf.d/php-fpm;

} 

flow-3.0.settings

location ~ /\. {
    deny all;
    access_log off;
    log_not_found off;
}

location = /favicon.ico {
    log_not_found off;
    access_log off;
}

location = /robots.txt {
    allow all;
    log_not_found off;
    access_log off;
}

location /_Resources/ {
    access_log off;
    log_not_found off;
    expires max;
    break;
}

flow-context-development

fastcgi_param   FLOW_CONTEXT      Development;
fastcgi_param   FLOW_REWRITEURLS  1;

php-fpm

location / {
        index index.php index.html index.htm;
        try_files $uri $uri/ /index.php$is_args$args;
        location ~ ^(.*)\.php$ {
                try_files      $uri = 404;
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param FLOW_REWRITEURLS 1;
                fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include        fastcgi_params;
        }
}

The same configuration can be used for other Flow based projects.

I hope this helps :slight_smile: