November 01, 2009 01:26PM
Found the solution.
Hope this helps someone else.

[code]

[...]

# Handle PHP scripts via fastcgi
location ~ ^.+\.php$
{
# set document root
root [docroot];

# test for file existence
# fallback to bootstrap to display 404
try_files $uri /index.php?$args;

# fastcgi setup
fastcgi_pass 127.0.0.1:9000;
# fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

# include common fastcgi params
include /etc/nginx/fastcgi_params;
}

[...]

[/code]
Subject Author Posted

From Apache to Nginx+php-fpm : How to port configuration ?

ftrudeau October 31, 2009 06:48PM

Re: From Apache to Nginx+php-fpm : How to port configuration ?

ftrudeau November 01, 2009 01:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 183
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready