Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx + php-cgi


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: nginx + php-cgi
  • From: <itskemko@xxxxxxxxx>
  • Date: Fri, 13 Nov 2009 10:37:15 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Pwdtai/gxX8Og6x3a/SBXxacWDYBWXqowLs0AmPXoHQ=; b=TgXLmfBdEnG/3LK17QCqVgn01g5D1oak0VTK/36wVo8SzEOevt4wuZsT5XDjBRgS+M eUm/gRDsX+tclKweCT6af1yHtCBO9IuPj904m+Q4KaSp1/7l9Noq3UmsShnZIjdQmQPu TbyKaOXm4iIA6JFjLhOOj55Z/55LJnyUYy76w=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bFHVAJ1Ozl5iqENbajL0foPlx5Uxkw6Cpe7Mp3FRU7rwEZiBZKfNYN2iCm97z1vk9M DMvQ7jpv3KTdrfAIJCf9YLqAR+qmWe/EfqbRIqptQFzxdS0HgKxWxiXoC/vljjK7AMNv 4sx+XSmOfsystT2U6MdcX5bcNbTObFoX7x61U=
  • In-reply-to: <699e1c0ebd28b454ae17b89637963504.NginxMailingListRussian@xxxxxxxxxxxxxxx>
  • References: <699e1c0ebd28b454ae17b89637963504.NginxMailingListRussian@xxxxxxxxxxxxxxx>

"" php-cgi ( fpm), , , "php-cgi.exe -b127.0.0.1:521" , php .

13 2009 . 3:15 user_name <nginx-forum@xxxxxxxx> :
! nginx, , php - nginx/php-cgi ?

PHP :


<?php
sleep(10);
echo "Test 1";
?>


<?php
echo rand(0,1000);
?>


, 10 . .. php-cgi ( Windows) .

nginx


worker_processes 1;

events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;

server {
listen 80;
server_name localhost;

set $root_for_cgi "C:/nginx-0.8.21/html/";

location / {
root html;
index index.php index.html index.htm;
}

location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:521;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $root_for_cgi$fastcgi_script_name;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}
}
}


php-cgi.exe

php-cgi.exe -b 127.0.0.1:521


Posted at Nginx Forum: http://forum.nginx.org/read.php?21,22469,22469#msg-22469





 




Copyright © Lexa Software, 1996-2009.