Hello,<br><br>Maybe you could use virtual conf, ie:<br><br>location ~ \.php$ {<br>            root           /home/example/public_html;<br>            fastcgi_pass   <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;<br>            fastcgi_index  index.php;<br>

fastcgi_param  SCRIPT_FILENAME /home/example/public_html$fastcgi_script_name;<br>            include        fastcgi_params;<br>        }<br><br clear="all">Regards,<br>Joe<br>
<br><br><div class="gmail_quote">On Sun, Feb 12, 2012 at 5:59 PM, Dmitry Timoshenko <span dir="ltr"><<a href="mailto:dimentiy2k@gmail.com">dimentiy2k@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello,<br>
<br>
I'm nuewbie in nginx, I've installed and setup nginx & php,<br>
everything is fine except .php files located in site's subdirectories are not processed at all.<br>
<br>
i.e. <a href="http://example.com/download.php" target="_blank">example.com/download.php</a> works fine, but<br>
<a href="http://example.com/stuff/dosomething.php" target="_blank">example.com/stuff/dosomething.<u></u>php</a> is sent to client as plain text.<br>
<br>
Please, would any kind soul tell me what should I change to resolve the problem.<br>
Thank you.<br>
<br>
I use those settings.<br>
<br>
#<br>
# <a href="http://example.com" target="_blank">example.com</a><br>
#<br>
<br>
server {<br>
    listen   80;<br>
    server_name  <a href="http://example.com" target="_blank">example.com</a>;<br>
<br>
    access_log  /var/log/nginx/<a href="http://example.com" target="_blank">example.com</a>.<u></u>access.log;<br>
<br>
    location / {<br>
        root   /var/www/nginx-default/<a href="http://example.com" target="_blank">example<u></u>.com</a>;<br>
        index  index.html index.htm index.php;<br>
    }<br>
<br>
## Parse all .php file in the /var/www directory<br>
    location ~ .php$ {<br>
        fastcgi_split_path_info ^(.+\.php)(.*)$;<br>
        fastcgi_pass   backend;<br>
        fastcgi_index  index.php;<br>
        fastcgi_param  SCRIPT_FILENAME  /var/www/nginx-default/<a href="http://example.com" target="_blank">example<u></u>.com</a>$fastcgi_script_name;<br>
        include fastcgi_params;<br>
        fastcgi_param  QUERY_STRING     $query_string;<br>
        fastcgi_param  REQUEST_METHOD   $request_method;<br>
        fastcgi_param  CONTENT_TYPE     $content_type;<br>
        fastcgi_param  CONTENT_LENGTH   $content_length;<br>
        fastcgi_intercept_errors        on;<br>
        fastcgi_ignore_client_abort     off;<br>
        fastcgi_connect_timeout 60;<br>
        fastcgi_send_timeout 180;<br>
        fastcgi_read_timeout 180;<br>
        fastcgi_buffer_size 128k;<br>
        fastcgi_buffers 4 256k;<br>
        fastcgi_busy_buffers_size 256k;<br>
        fastcgi_temp_file_write_size 256k;<br>
    }<br>
<br>
## Disable viewing .htaccess & .htpassword<br>
    location ~ /\.ht {<br>
        deny  all;<br>
    }<br>
}<br>
<br>
upstream backend {<br>
        server <a href="http://127.0.0.1:9000" target="_blank">127.0.0.1:9000</a>;<br>
}<br>
<br>
______________________________<u></u>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/<u></u>mailman/listinfo/nginx</a><br>
</blockquote></div><br>