ПРОЕКТЫ 


  АРХИВ 


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]

Возможно это баг в обработке location


  • To: nginx-ru@xxxxxxxxx
  • Subject: Возможно это баг в обработке location
  • From: Алексей Востриков <alex@xxxxxxxxxxxxxxxx>
  • Date: Thu, 09 Feb 2012 14:44:32 +0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=teletrade-dj.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:Subject:To:MIME-Version:From:Date:Message-ID; bh=UE0nS03VfdC3fQf1TEZcq3TlIp0/9IW689279xPXK6s=; b=LDwrG5iFQDrLUYkso2ALvqoaZJk2La+/5Aza1OF2Egg9CvoFA9mRExF7836vSOPzZS+4yRr+WQPeVhac1J6mORRAq/lY2aaV6KlM/UHdybEZbUBSXM0JtSDN0R1TeSaZsPIHYpt9BfgtzlI0ERw5Ix0yUdcO32vQSiIxly60s+A=;

Почемуто на нижеприведенном конфиге
http://www.xxx.com/partner
обрабатывается в локейшине /pa , а не в корне
nginx-full   1.1.8-2~bpo60+1   debian squeeze-backports
-----------------------%<--------------------------------------------------------------
server {

    listen   12.34.56.78:80;
    server_name
        www.xxx.com
        xxx.com
    ;

    access_log    /sites/xxx.com/log/access.log;
    error_log     /sites/xxx.com/log/error.log;

    root   /sites/xxx.com/www;

    location / {
        root   /sites/xxx.com/www;
        index index.php;
        try_files $uri $uri/ /index.php?$args ;

        location ~ \.php$ {
            try_files $uri /index.php?$args ;
            include fastcgi_params;
            fastcgi_param  DOCUMENT_ROOT           /sites/xxx.com/www;
fastcgi_param SCRIPT_FILENAME /sites/xxx.com/www$fastcgi_script_name;
            fastcgi_param  QUERY_STRING            $args;
            fastcgi_pass 127.0.0.1:9000;
        }
    }

    location /.a {
        index index.php;
        try_files $uri $uri/ /.a/index.php?$args;

        location ~ \.php$ {
            try_files $uri /.a/index.php?$args ;
            root   /sites/xxx.com/www;
            include fastcgi_params;
            fastcgi_param  DOCUMENT_ROOT           /sites/xxx.com/www;
fastcgi_param SCRIPT_FILENAME /sites/xxx.com/www$fastcgi_script_name;
            fastcgi_param  QUERY_STRING $args;
            fastcgi_pass 127.0.0.1:9000;
        }
    }

    location  /pa {
        alias /usr/share/postfixadmin;
        index index.php;

        location ~ /pa/(.*\.php)$ {
            alias /usr/share/postfixadmin;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/share/postfixadmin/$1;
            fastcgi_param  DOCUMENT_ROOT           /usr/share/postfixadmin;
        }
    }
}
-----------------------%<--------------------------------------------------------------

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


 




Copyright © Lexa Software, 1996-2009.