ПРОЕКТЫ 


  АРХИВ 


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]

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


  • To: nginx-ru@xxxxxxxxx
  • Subject: не видит директорию
  • From: "horsement" <nginx-forum@xxxxxxxx>
  • Date: Thu, 24 Apr 2014 10:59:13 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selenium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=zJbRjylWEA5dcT98epBnmYslxP8pX2wLBrf2xVpeKnk=; b=ZN1H3BSfh9KFMVc9U8k5rSU8KwCdOq/Jh1W3IF4eIFLeIRwXTYfzQMQjM+RWGtBY85MIKIF7kxFFqF44ywm92DZlG/K6ePs14LZeJlI6jRtjcj0UTypcMeWfNXy7oXdnX7k0WHe0qkLB7yHQ096H/YW/96n5D8F0CfDW01J0PYU=;

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 все прекрасно
видит
в чем тут подводный камень , вроде в принципе же все одно и тоже ?

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

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.