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("