atom feed20 messages in ru.sysoev.nginxwhy my php file in subdirectory doesn...
FromSent OnAttachments
baalchinaSep 27, 2011 7:55 pm 
Simon LiuSep 27, 2011 8:02 pm 
suttlesOct 11, 2011 7:52 am 
Simon LiuOct 11, 2011 8:16 am 
suttlesOct 11, 2011 8:21 am 
Simon LiuOct 11, 2011 8:40 pm 
suttlesOct 12, 2011 11:19 am 
suttlesOct 17, 2011 9:19 am 
gigabyteJan 5, 2012 11:36 pm 
Ian HobsonJan 6, 2012 2:30 am 
Edho AriefJan 6, 2012 2:36 am 
gigabyteJan 6, 2012 3:38 am 
Edho AriefJan 6, 2012 3:40 am 
gigabyteJan 6, 2012 4:25 am 
Edho AriefJan 6, 2012 4:47 am 
gigabyteJan 6, 2012 5:45 am 
Edho AriefJan 6, 2012 5:48 am 
gigabyteJan 6, 2012 6:01 am 
Edho AriefJan 6, 2012 6:06 am 
gigabyteJan 6, 2012 6:23 am 
Subject:why my php file in subdirectory doesn't work?
From:baalchina (ngin@nginx.us)
Date:Sep 27, 2011 7:55:58 pm
List:ru.sysoev.nginx

Hello everyone,

I am working on an centos6 with nginx 1.0.6, php 5.3.6, and fpm.

I found that php file in my subdirectory returns a 404,but in nginx home direcory works fine.

For example , a phpinfo.php file works fine in /data/web/, where /data/web is my nginx document root. Buy the same file in /data/web/sub, the browser and nginx both tell a 404 error.

Here is my nginx config file:

server { listen 80; server_name abc.example.com;

location / { root /data/web/; index index.html index.htm index.php;

location ~ .*\.(php|php5)?$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; fastcgi_buffer_size 64k; fastcgi_buffers 4 64; fastcgi_busy_buffers_size 128k; fastcgi_temp_file_write_size 128k; } } }

btw, static file such as html works fine.

Thans a lot.

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