You are not logged in.
Hello guys! Just trying simple configuration with nginx and php
/etc/nginx/conf/nginx.conf
worker_processes 1;
error_log logs/error.log;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
access_log logs/access.log ;
sendfile on;
keepalive_timeout 65;
server {
listen 10.21.54.229;
server_name security.microsoft.com;
charset utf-8;
location / {
root /srv/www/nginx/html;
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9675;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /srv/www/nginx/html$fastcgi_script_name;
include /etc/nginx/conf/fastcgi_params;
}
}
}
php-cgi launched by hand
#php-cgi -b /tmp/php.socket
my php server is responding " no input file specified"
10.21.52.124 - - [16/Dec/2008:20:57:56 +0200] "GET /t.php HTTP/1.1" 404 36 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; rv:1.9.0.4) Gecko/2008102920
Firefox/3.0.4"
Fix: add /srv/www/nginx/html to open_basedir setting in /etc/php/php.ini
Last edited by lessless (2008-12-17 17:42:02)
Offline