nt001
December 1, 2009, 9:38am
1
Hi there, I have problem, but I sloved 50% of it. Need a little help. So
my problem before is when I try to load php pages, nginx got “No input
file specified.” So I have sloved this by looking at fastcgi_param. …
my www dir is /www
pages dir is /www/page1, /www/page2, /www/page3
my fastcgi parameters in nginx.conf is:
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /www$fastcgi_script_name;
include /usr/pkg/etc/nginx/fastcgi_params;
}
and have still recived “No input file specified.” when I use
fastcgi_param SCRIPT_FILENAME /www$fastcgi_script_name;
but when i type the site1, 2 or 3 folder, don’t have problems …
something like:
fastcgi_param SCRIPT_FILENAME /www/site1/$fastcgi_script_name; (or
/www/site1$fastcgi_script_name; # will be the same)
Sooo my question, example I hosting about more than 100 web pages, this
mean I have 100+ folders in /www dir. Are I must need to write 100 lines
for fastcgi workin’ for all?
By the way I have tired to try
fastcgi_param SCRIPT_FILENAME /www//$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /www/ $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /www/$*$fastcgi_script_name;
to enable fastcgi for all pages, but still don’t work (No imput file)
Can somebody help:?
Thanks beforely!
Posted at Nginx Forum:
Hi there, I have problem, but I sloved 50% of it. Need a little help. So my problem before is when I try to load php pages, nginx got "No input file specified." So I have sloved this by looking at fastcgi_param. ... my www dir is /www pages...
nt001
December 1, 2009, 12:19pm
2
FastCGI don’t work for virtual hosts only. But if I load
http://MyIpAdress/site1/ the page is load successful. Please for
solution.
Posted at Nginx Forum:
Hi there, I have problem, but I sloved 50% of it. Need a little help. So my problem before is when I try to load php pages, nginx got "No input file specified." So I have sloved this by looking at fastcgi_param. ... my www dir is /www pages...
nt001
December 2, 2009, 7:42am
3
Igor, thank you for atention, but still "No input file specified. "
ps. I forgot to told you, I have allready try this option with
$document_root.
Cheers, spasiba.
Posted at Nginx Forum:
Hi there, I have problem, but I sloved 50% of it. Need a little help. So my problem before is when I try to load php pages, nginx got "No input file specified." So I have sloved this by looking at fastcgi_param. ... my www dir is /www pages...
nt001
December 5, 2009, 12:44am
4
Igor S. Wrote:
my fastcgi parameters in nginx.conf is:
and have still recived "No input file
/www/site1/$fastcgi_script_name; (or
You probably need
Igor S.
Igor Sysoev
nginx mailing list
[email protected]
nginx Info Page
So, I see the FastCGI and PHP work only for root domain, not for vhosts.
Aybody have solution:?
Posted at Nginx Forum:
Hi there, I have problem, but I sloved 50% of it. Need a little help. So my problem before is when I try to load php pages, nginx got "No input file specified." So I have sloved this by looking at fastcgi_param. ... my www dir is /www pages...
nt001
December 19, 2009, 3:25pm
5
On Tue, Dec 01, 2009 at 03:34:00AM -0500, nt001 wrote:
}
Sooo my question, example I hosting about more than 100 web pages, this mean I have 100+ folders in /www dir. Are I must need to write 100 lines for fastcgi workin’ for all?
By the way I have tired to try
fastcgi_param SCRIPT_FILENAME /www//$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /www/ $fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME /www/$*$fastcgi_script_name;
to enable fastcgi for all pages, but still don’t work (No imput file)
You probably need
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include /usr/pkg/etc/nginx/fastcgi_params;
}
–
Igor S.
http://sysoev.ru/en/