Welcome! Log In Create A New Profile

Advanced

get Error "No input file specified. " with Alias Directive on nignx

Posted by kevin 
i have installed nginx-0.6.35 + php-5.2.9 + php-fpm 0.5.10 for
php-5.2.8

they worked very well with no problem

and now i want run phpMyAdmin in a specially path like "/www/db/"
so i add alias directive in my conf file named vhosts.conf.

this is the vhosts.conf file:

server {
listen 80;
server_name www.myhost.com

charset utf-8;

root /www/htdocs;

index index.html index.htm index.php;

location /db/ {
alias /www/php/;
}

include php_fcgi.conf;
}

and it included php_fcgi.conf:

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root
$fastcgi_script_name;
}

when i browse http://www.myhost.com/db/ ,i got error "No input file
specified."
i can browse other php script with no problem

i think, maybe the $document_root is wrong for location /db/,but how
can i define it?
Don't know if this is helpful, but... I'm pretty sure the "No input file
specified." is from the FCGI process, so at least you know the pass to the
FCGI process is working. Sorry I can't be more help.


2009/4/3 kevin

>
> i have installed nginx-0.6.35 + php-5.2.9 + php-fpm 0.5.10 for
> php-5.2.8
>
> they worked very well with no problem
>
> and now i want run phpMyAdmin in a specially path like "/www/db/"
> so i add alias directive in my conf file named vhosts.conf.
>
> this is the vhosts.conf file:
>
> server {
> listen 80;
> server_name www.myhost.com
>
> charset utf-8;
>
> root /www/htdocs;
>
> index index.html index.htm index.php;
>
> location /db/ {
> alias /www/php/;
> }
>
> include php_fcgi.conf;
> }
>
> and it included php_fcgi.conf:
>
> location ~ \.php$ {
> fastcgi_pass 127.0.0.1:9000;
> fastcgi_index index.php;
> include fastcgi_params;
> fastcgi_param SCRIPT_FILENAME $document_root
> $fastcgi_script_name;
> }
>
> when i browse http://www.myhost.com/db/ ,i got error "No input file
> specified."
> i can browse other php script with no problem
>
> i think, maybe the $document_root is wrong for location /db/,but how
> can i define it?
>
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready