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

Алексей Востриков alex на teletrade-dj.com
Чт Фев 9 10:44:32 UTC 2012


Почемуто на нижеприведенном конфиге
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