Welcome! Log In Create A New Profile

Advanced

не видит директорию

April 24, 2014 10:59AM
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 все прекрасно видит
в чем тут подводный камень , вроде в принципе же все одно и тоже ?
Subject Author Posted

не видит директорию

horsement April 24, 2014 10:59AM

Re: не видит директорию

Maxim Dounin April 24, 2014 11:44AM

Re: не видит директорию

horsement April 24, 2014 11:55AM

Re: не видит директорию

Maxim Dounin April 24, 2014 12:16PM

Re: не видит директорию

horsement April 24, 2014 12:53PM

Re: не видит директорию

horsement April 24, 2014 12:59PM

Re: не видит директорию

Valentin V. Bartenev April 24, 2014 01:26PM

Re: не видит директорию

horsement April 24, 2014 02:00PM

Re: не видит директорию

Daniel Podolsky April 24, 2014 03:08PM

Re: не видит директорию

Lystopad Aleksandr April 24, 2014 03:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 89
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready