Translation - Μετάφραση

Resources, Technical Assistance and Technology News => Tips on Using Computers => Translator resources => Linux tips => Topic started by: spiros on 17 May, 2018, 10:35:28

Title: How to run Perl scripts in cPnginx (Nginx plugin for CPanel)
Post by: spiros on 17 May, 2018, 10:35:28
How to run Perl scripts in cPnginx (Nginx plugin for CPanel)

If you want stand-alone Nginx functionality, clone the Nginx template (Nginx+ PHP-FPM Default Stand Alone), then search for all instances of

Code: [Select]
location ~* ^/(cpanel|webmail|whm|bandwidth|img-sys|java-sys|mailman/archives|pipermail|sys_cpanel|cgi-sys|mailman) {
Replace with
Code: [Select]
location ~* ^/(cpanel|webmail|whm|bandwidth|img-sys|java-sys|cgi-bin|mailman/archives|pipermail|sys_cpanel|cgi-sys|mailman) {
cgi-bin is added as a directory to be parsed by Apache. Now, any scripts in the cgi-bin folder will be parsed by Apache and Perl.

Some useful URLs
https://aruljohn.com/info/nginxcgi/
https://www.nginx.com/modules/perl/
https://www.scalescale.com/tips/nginx/serve-perl-scripts-nginx/
https://metacpan.org/pod/Nginx
http://search.cpan.org/~zzz/Nginx-Perl-1.2.9.7/src/http/modules/perl/Nginx.pm
Module ngx_http_perl_module (http://nginx.org/en/docs/http/ngx_http_perl_module.html)
nginx and perl