-,     :<br><a href="http://nginx.org/ru/docs/http/ngx_http_core_module.html#location">http://nginx.org/ru/docs/http/ngx_http_core_module.html#location</a><br><br><div class="gmail_quote">
9  2012. 16:44    <span dir="ltr"><<a href="mailto:alex@teletrade-dj.com">alex@teletrade-dj.com</a>></span> :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
   <br>
<a href="http://www.xxx.com/partner" target="_blank">http://www.xxx.com/partner</a><br>
   /pa ,    <br>
nginx-full  1.1.8-2~bpo60+1  debian squeeze-backports<br>
-----------------------%<-----<u></u>------------------------------<u></u>---------------------------<br>
server {<br>
<br>
  listen  <a href="http://12.34.56.78:80" target="_blank">12.34.56.78:80</a>;<br>
  server_name<br>
    <a href="http://www.xxx.com" target="_blank">www.xxx.com</a><br>
    <a href="http://xxx.com" target="_blank">xxx.com</a><br>
  ;<br>
<br>
  access_log  /sites/<a href="http://xxx.com/log/access.log" target="_blank">xxx.com/log/access.log</a>;<br>
  error_log   /sites/<a href="http://xxx.com/log/error.log" target="_blank">xxx.com/log/error.log</a>;<br>
<br>
  root  /sites/<a href="http://xxx.com/www" target="_blank">xxx.com/www</a>;<br>
<br>
  location / {<br>
    root  /sites/<a href="http://xxx.com/www" target="_blank">xxx.com/www</a>;<br>
    index index.php;<br>
    try_files $uri $uri/ /index.php?$args ;<br>
<br>
    location ~ \.php$ {<br>
      try_files $uri /index.php?$args ;<br>
      include fastcgi_params;<br>
      fastcgi_param DOCUMENT_ROOT      /sites/<a href="http://xxx.com/www" target="_blank">xxx.com/www</a>;<br>
      fastcgi_param SCRIPT_FILENAME     /sites/<a href="http://xxx.com/www$fastcgi_script_name" target="_blank">xxx.com/www$fastcgi_<u></u>script_name</a>;<br>
      fastcgi_param QUERY_STRING      $args;<br>
      fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
    }<br>
  }<br>
<br>
  location /.a {<br>
    index index.php;<br>
    try_files $uri $uri/ /.a/index.php?$args;<br>
<br>
    location ~ \.php$ {<br>
      try_files $uri /.a/index.php?$args ;<br>
      root  /sites/<a href="http://xxx.com/www" target="_blank">xxx.com/www</a>;<br>
      include fastcgi_params;<br>
      fastcgi_param DOCUMENT_ROOT      /sites/<a href="http://xxx.com/www" target="_blank">xxx.com/www</a>;<br>
      fastcgi_param SCRIPT_FILENAME     /sites/<a href="http://xxx.com/www$fastcgi_script_name" target="_blank">xxx.com/www$fastcgi_<u></u>script_name</a>;<br>
      fastcgi_param QUERY_STRING $args;<br>
      fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
    }<br>
  }<br>
<br>
  location /pa {<br>
    alias /usr/share/postfixadmin;<br>
    index index.php;<br>
<br>
    location ~ /pa/(.*\.php)$ {<br>
      alias /usr/share/postfixadmin;<br>
      fastcgi_pass <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
      fastcgi_index index.php;<br>
      include fastcgi_params;<br>
      fastcgi_param SCRIPT_FILENAME     /usr/share/postfixadmin/$1;<br>
      fastcgi_param DOCUMENT_ROOT      /usr/share/postfixadmin;<br>
    }<br>
  }<br>
}<br>
-----------------------%<-----<u></u>------------------------------<u></u>---------------------------<br>
<br>
______________________________<u></u>_________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org" target="_blank">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/<u></u>mailman/listinfo/nginx-ru</a></blockquote></div><br><br clear="all"><br>