inc_basic_php_fastcgi.erb 396 Bytes
# Generated by Chef
#

# No need to enable this if PHP and Nginx share the same filesystem
#fastcgi_index index.php;

# You should have "cgi.fix_pathinfo = 0;" in php.ini
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

<% socket = @socket[0] == '/' ? "unix:#{@socket}" : @socket -%>
fastcgi_pass <%= socket %>;