<div dir="ltr"> ?   !<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-12 13:38 GMT+04:00 georgiy_s <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> ,    :<br>
<div class=""><br>
  server {<br>
    listen 80;<br>
    server_name test.loc;<br>
    root /var/www/test;<br>
<br>
    error_log /var/log/nginx/mytest.log;<br>
    index index.html index.php;<br>
<br>
    location / {<br>
<br>
</div><div class="">    index index.html index.php;<br>
    try_files $uri $uri/ /index.php?$args;<br>
    set $root /var/www/test;<br>
<br>
<br>
    }<br>
<br>
    location /sample {<br>
<br>
      index index.html index.php;<br>
      try_files $uri $uri/ /index.php?$args;<br>
</div>      alias /var/www/test2;<br>
<br>
      location ~ \.php$ {<br>
<div class="">        include fastcgi_params;<br>
        fastcgi_param PATH_INFO $fastcgi_path_info;<br>
        fastcgi_index index.php;<br>
        fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;<br>
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
        fastcgi_pass  <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
      }<br>
    }<br>
<br>
    location ~ \.php$ {<br>
     #try_files $uri =404;<br>
     #fastcgi_split_path_info ^(.+\.php)(/.+)$;<br>
     #fastcgi_split_path_info ^(.+\.php)(.+)$;<br>
<br>
     include fastcgi_params;<br>
     fastcgi_param PATH_INFO $fastcgi_path_info;<br>
     fastcgi_index index.php;<br>
     fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;<br>
     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>
     fastcgi_pass  <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
    }<br>
<br>
  }<br>
<br>
</div>ӣ   .      . ..<br>
   sample    <br>
<a href="http://test.loc/sample/index.php" target="_blank">http://test.loc/sample/index.php</a>  <br>
/var/www/test2/sample/index.php ,    /var/www/test2/index.php .<br>
<br>
, ,    ?<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?21,248289,248294#msg-248294" target="_blank">http://forum.nginx.org/read.php?21,248289,248294#msg-248294</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a></div></div></blockquote></div><br></div>