You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
343 B

5 months ago
package MyModule;
use nginx; # Make sure to use the nginx module
sub handler {
my $r = shift; # Get the request object
$r->send_http_header("text/html"); # Send HTTP headers
# Print a simple HTML page
$r->print("<html><body><h1>Hello, Nginx Perl!</h1></body></html>");
return OK;
}
1; # Ensure the module returns true