nginx+php+ fastcgi
c таким конфигом не видит веб-файлы в директорий с:\appserv\htdosc
#user nobody;
worker_processes 1;
pid logs/nginx.pid;
events {
worker_connections 101;
}
http {
include mime.types;
default_type application/octet-stream;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
client_header_buffer_size 1k;
large_client_header_buffers 4 4k;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
#send_lowat 12000;
keepalive_timeout 900;
output_buffers 1 32k;
postpone_output 1460;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain text/xml application/xml application/x-javascript text/javascript text/css text/json;
gzip_http_version 1.0;
gzip_comp_level 4;
upstream backend {
server 127.0.0.1:9000;
server 127.0.0.1:9001;
server 127.0.0.1:9002;
server 127.0.0.1:9003;
server 127.0.0.1:9004;
}
server {
listen 80;
server_name localhost;
#root htdocs;
#index index.php;
charset utf-8;
server_tokens off;
location / {
root C:/APPServ/htdocs;
index index.php;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
# fastcgi_pass localhost:9000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME C:/APPServ/htdocs$fastcgi_script_name;
include C:/APPServ/conf/fastcgi_params;
# fastcgi_intercept_errors on;
}
location ~ /\.ht {
deny all;
}
}
}
а если убрать upstream backend и раскоментировать fastcgi все прекрасно видит
в чем тут подводный камень , вроде в принципе же все одно и тоже ?