Welcome! Log In Create A New Profile

Advanced

Alias and FCGI not working

Posted by xmichielx 
Alias and FCGI not working
May 19, 2010 06:01PM
Hello,

I am running CentOS 5.5 with Nginx 0.7* with spawn-cgi init script (using fastcgi).
I have the folowing problem, I get a No Input file specified when I am requesting an alias folder which has an index.php and running FCGI.

My webroot is /var/www/simone/Webroot
My alias with FCGI is set up like this:


location ~ ^/gallery/(.*\.php)$ {
alias /var/www/simone/SimpleViewer/$1;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_read_timeout 240;
fastcgi_param SCRIPT_FILENAME /var/www/simone/SimpleViewer$fastcgi_script_name;
include fastcgi_params;
}
location ~ ^/gallery($|/.*) {
alias /var/www/simone/SimpleViewer$1;
index index.php index.htm index.html;
}
}

But I get the error No Input file specified.

How can I alias /gallery/ to var/www/simone/SimpleViewer and run index.php from it?

Regards,

Michiel
Re: Alias and FCGI not working
May 20, 2010 03:00AM
I fixed it!
I found a good working example on the internetz..:)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 171
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