From owner-freebsd-questions@FreeBSD.ORG Sat Sep 8 23:27:35 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8579616A41A for ; Sat, 8 Sep 2007 23:27:35 +0000 (UTC) (envelope-from patfbsds+questions@davenulle.org) Received: from smtp.lamaiziere.net (net.lamaiziere.net [213.186.42.107]) by mx1.freebsd.org (Postfix) with ESMTP id 4026913C46E for ; Sat, 8 Sep 2007 23:27:35 +0000 (UTC) (envelope-from patfbsds+questions@davenulle.org) Received: from roxette (unknown [77.192.6.105]) by smtp.lamaiziere.net (Postfix) with ESMTP id EC5C611805DD for ; Sun, 9 Sep 2007 01:27:33 +0200 (CEST) Date: Sun, 9 Sep 2007 01:27:31 +0200 From: Patrick Lamaiziere To: freebsd-questions@freebsd.org Message-ID: <20070909012731.55dc6b77@roxette> In-Reply-To: <1189291130.8850.8.camel@dingo-laptop> References: <1189291130.8850.8.camel@dingo-laptop> Organization: /dave/nulle X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Subject: Re: Nginx PHP5 Fast-CGI FreeBSD CURRENT X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2007 23:27:35 -0000 Le Sun, 09 Sep 2007 01:38:50 +0300, OutBackDingo a écrit : > # .php5 sent to php5 > location ~ .*\.php5$ { I'm not sure for this expression, i use for .php location ~ \.php$ { > include /usr/local/etc/nginx/fastcgi_params; > fastcgi_pass 127.0.0.1:10005; > fastcgi_index index.php; > fastcgi_param SCRIPT_FILENAME /$fastcgi_script_name; You should append the root location of the server: fastcgi_param SCRIPT_FILENAME /usr/local/www/nginx$fastcgi_script_name; > /usr/local/sbin/spawn-fcgi -f /usr/local/bin/php-cgi -a 127.0.0.1 -p > 9000 -u www The port should be 10005 for « fastcgi_pass 127.0.0.1:10005; » Regards.