Nginx::Runner - run nginx proxy server
use Nginx::Runner; my $nginx = Nginx::Runner->new; $nginx->proxy("127.0.0.1:8080" => "127.0.0.1:3000"); $nginx->proxy( "https://127.0.0.1:8443" => "127.0.0.1:3000", [ssl_certificate => "/etc/ssl/nginx/nginx.pem"], [ssl_certificate_key => "/etc/ssl/nginx/nginx.pem"] ); $nginx->run; $SIG{INT} = sub { $nginx->stop }; print "Server available at ", "http://127.0.0.1:8080 and https://127.0.0.1:8443\n"; sleep;
Copyright (C) 2012, Sergey Zasenko.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.14.
L<http://nginx.org>
To install Nginx::Runner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nginx::Runner
CPAN shell
perl -MCPAN -e shell install Nginx::Runner
For more information on module installation, please visit the detailed CPAN module installation guide.