diff --git a/conf/nginx.conf b/conf/nginx.conf index 5285d50..5975b12 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -17,9 +17,10 @@ location PATHTOCHANGE { } location ~ \.php$ { - fastcgi_pass 127.0.0.1:9000; + fastcgi_split_path_info ^(.+.php)(/.+)$; + fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }