Welcome! Log In Create A New Profile

Advanced

Re: need help getting perl cgis to work.

Francis Daly
January 05, 2012 08:44AM
On Thu, Jan 05, 2012 at 08:25:43AM -0500, jason@monsterjam.org wrote:

Hi there,

> hey folks, ive been running apache for years but now trying to use nginx. I have nginx and php(with fastcgi)
> working fine, but whenever I try to bring up my web page that has a perl cgi on it, it just downloads the script

> when do I need to do to get nginx to properly execute the perl cgi?

nginx doesn't do cgi.

You'll need to run some separate server that nginx can talk to as a
client, that is able to do whatever processing you want.

If you have a http server that handles the cgi for you, you can
"proxy_pass" to that.

If you have a fastcgi server that is set up to do the right thing with
your cgi script, you can "fastcgi_pass" to that.

There are also other options.

On the nginx side, you configure it in a similar way to your
php-via-fastcgi configuration.

f
--
Francis Daly francis@daoine.org

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

need help getting perl cgis to work.

Anonymous User January 05, 2012 08:28AM

Re: need help getting perl cgis to work.

Francis Daly January 05, 2012 08:44AM

Re: need help getting perl cgis to work.

Aleksandar Lazic January 05, 2012 09:36AM

Re: need help getting perl cgis to work.

Cliff Wells January 05, 2012 04:36PM

Re: need help getting perl cgis to work.

Falko Timme January 05, 2012 04:56PM

Re: need help getting perl cgis to work.

Edho Arief January 05, 2012 09:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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