Welcome! Log In Create A New Profile

Advanced

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

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 219.144.196.203 www.mediawe.com
wap.mediawe.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://myhost/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: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready