Welcome! Log In Create A New Profile

Advanced

Re: Perl/CGI on Nginx?

Francis Daly
July 08, 2013 12:56PM
On Mon, Jul 08, 2013 at 07:45:04PM +0300, BSD Kazakhstan wrote:

Hi there,

> I'm running Nginx on OpenBSD. PHP works fine, but how can I add support to
> .pl and .cgi files for Nginx?

nginx doesn't "do" php, pl, or cgi itself.

You must set up an external server to handle them, and configure nginx
to talk to that external server.

Probably you have set up a fastcgi server which knows how to handle the
php files, and you have configured nginx to "fastcgi_pass" to that server
for the appropriate urls.

You can do the same with pl and cgi files.

Or perhaps you can set up a http server which knows how to handle the
"dynamic" files; in that case you would configure nginx to "proxy_pass"
to the external server.

f
--
Francis Daly francis@daoine.org

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

Perl/CGI on Nginx?

BSD Kazakhstan July 08, 2013 12:46PM

Re: Perl/CGI on Nginx?

Francis Daly July 08, 2013 12:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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