При таком конфиге "No input file specified."
location /sample {
index index.html index.php;
#try_files $uri $uri/ /index.php?$args;
alias /var/www/test2/sample;
rewrite ^sample/(.*)$ /$1 break;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_index index.php;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
}
При таком 404 Not Found
location /sample {
root /var/www/test2/sample;
rewrite ^sample/(.*)$ /$1 break;
}
Меняю в последнем примере root на /var/www/test2 - снова No input file specified.