Welcome! Log In Create A New Profile

Advanced

Re: Perl + fcgi + nginx - what am I doing wrong?

Francis Daly
July 31, 2015 12:02PM
On Fri, Jul 31, 2015 at 08:55:44AM -0400, youradds wrote:

Hi there,

> I've already got a live + dev site running under nginx and perl (with fcgi),
> but I can't for the life of me work out why its not working this time
> around.

What is shown when you "diff" the working old nginx.conf and the failing
new nginx.conf?

Do the old and new use the same fastcgi server? Are there any differences
in the fastcgi server config?

> location ~ \.cgi$ {
> try_files $uri =404;
> gzip off;
> include /etc/nginx/fastcgi_params;
> fastcgi_pass unix:/var/run/fcgiwrap.socket;
> fastcgi_index index.cgi;
> fastcgi_param SCRIPT_FILENAME
> /srv/www/site.net.net/www/cgi-bin/$fastcgi_script_name;
> }

> index.html - works fine
> index.php - works fine
> index.cgi - 403 error

What file on your filesystem do you want the fasctcgi server to process
when you request this index.cgi? -- your server layout.

What SCRIPT_FILENAME value(s) does nginx send to your fastcgi server? --
nginx debug logs, or watch the traffic.

(Does your fastcgi server even use SCRIPT_FILENAME? -- your fastcgi
server documentation.)

Is SCRIPT_FILENAME set in your /etc/nginx/fastcgi_params?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Perl + fcgi + nginx - what am I doing wrong?

youradds July 31, 2015 08:55AM

Re: Perl + fcgi + nginx - what am I doing wrong?

youradds July 31, 2015 10:55AM

Re: Perl + fcgi + nginx - what am I doing wrong?

Francis Daly July 31, 2015 12:02PM

Re: Perl + fcgi + nginx - what am I doing wrong?

youradds July 31, 2015 01:51PM

Re: Perl + fcgi + nginx - what am I doing wrong?

Erick Ocrospoma July 31, 2015 02:20PM

Re: Perl + fcgi + nginx - what am I doing wrong?

youradds July 31, 2015 02:55PM

Re: Perl + fcgi + nginx - what am I doing wrong?

youradds July 31, 2015 02:59PM

Re: Perl + fcgi + nginx - what am I doing wrong?

Francis Daly July 31, 2015 06:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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