# Default configuration for non-framework apps
root <%= ENV['DOCUMENT_ROOT'] %>;


try_files $uri /index.php;

# this will only pass index.php to the fastcgi process which is generally safer but
# assumes the whole site is run via Slim.
location /index.php {
    include fastcgi_params;
    fastcgi_connect_timeout 3s;
    fastcgi_read_timeout 10s;
    fastcgi_buffers 256 4k;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass php;
}

# Default configuration for non-framework apps
root /app/<%= ENV['DOCUMENT_ROOT'] %>;

try_files $uri /index.php;

# this will only pass index.php to the fastcgi process which is generally safer but
# assumes the whole site is run via Slim.
location /index.php {
    include fastcgi_params;
    fastcgi_connect_timeout 3s;
    fastcgi_read_timeout 10s;
    fastcgi_buffers 256 4k;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass php;
}

Make document root relative to /app
Make document root relative to /app
