Welcome! Log In Create A New Profile

Advanced

Re: Nginx + Perl

Maxim Dounin
January 24, 2011 07:38AM
Hello!

On Mon, Jan 24, 2011 at 06:41:21AM -0500, daozor wrote:

> Hi
> Nginx perfectly execute Perl scripts with the extensions *.cgi or *.pl
> (www.abc.com/bin/test_perl_script.cgi) via fastcgi.
> But I should execute Perl scripts without the extension. For example:
> www.abc.com/bin/test_perl_script
> How to configure nginx.conf file.

nginx looks on URI to determine how requests should be processed,
and you have to pass appropriate URIs to fastcgi. I.e. to pass
/bin/test_perl_script to fastcgi you should write something like
this in your nginx config:

location = /bin/test_perl_script {
fastcgi_pass ...
...
}

To pass everything under /bin/ write something like this:

location /bin/ {
fastcgi_pass ...
...
}

See here for more details:

http://wiki.nginx.org/HttpCoreModule#location

Maxim Dounin

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

Nginx + Perl

daozor January 24, 2011 06:41AM

Re: Nginx + Perl

daozor January 24, 2011 07:25AM

Re: Nginx + Perl

Maxim Dounin January 24, 2011 07:38AM

Re: Nginx + Perl

edogawaconan January 24, 2011 07:40AM

Re: Nginx + Perl

daozor January 24, 2011 08:23AM

Re: Nginx + Perl

edogawaconan January 24, 2011 08:36AM

Re: Nginx + Perl

daozor January 24, 2011 09:07AM

Re: Nginx + Perl

daozor January 24, 2011 09:11AM

Re: Nginx + Perl

edogawaconan January 24, 2011 09:28AM

Re: Nginx + Perl

daozor January 24, 2011 09:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 54
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready