The Perl Toolchain Summit 2025 Needs You: You can help ๐Ÿ™ Learn more

NAME

Nginx::Runner - run nginx proxy server

SYNOPSIS

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 ",
sleep;

COPYRIGHT AND LICENSE

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.

SEE ALSO