July 31, 2015 01:51PM
Hi Fancis,

Thanks for the reply!

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

Not a huge amount tbh. The live one has:

pid /var/run/nginx.pid;

and new dev has:

pid /run/nginx.pid;

New one has:


##
# SSL Settings
##

ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;

..extra.

..and the old one has this extra (all commented out, mind);

# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

##
# nginx-naxsi config
##
# Uncomment it if you installed nginx-naxsi
##

#include /etc/nginx/naxsi_core.rules;

##
# nginx-passenger config
##
# Uncomment it if you installed nginx-passenger
##

#passenger_root /usr;
#passenger_ruby /usr/bin/ruby;

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

Both the same by the looks of it:

root@steamdev2:~# service fastcgi --version
service ver. 0.91-ubuntu1

root@steampunkjlinode:~# service fastcgi --version
service ver. 0.91-ubuntu1

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

Do you mean the etc/init.d/fcgiwrap file? There were a few differents in it (mostly comments). I tried copying the same one over from live, but didn't seem to make a difference

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

The layout is:

/srv/www/site.net/logs/
/srv/www/site.net/www/
/srv/www/site.net/www/cgi-bin

The .cgi/.pl stuff is all going to be in /cgi-bin - but for testing purposes, I've just stuck it at root level (so I can try out and see if I can get it working at the most basic level)

The script in question would be found /srv/www/site.net/www/index.cgi, and I would expect it to work/run at http://site.net/index.cgi

With regards to /etc/nginx/fastcgi_params settings - here are the values of them:

LIVE (working) ONE: http://pastebin.com/QMHKGkJX
NEW ONE: http://pastebin.com/G72Ds9aA

Hopefully that answers everything :)

Cheers

Andy
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: 162
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