RunApp::Apache(3pm)
π NAME π
RunApp::Apache β Apache control for RunApp, bestie. Yes, literally that. It's giving web server wrangling. π¦
β¨ SYNOPSIS β¨
use RunApp::Apache;
$apache = RunApp::Apache->new
(root => "/tmp/apache_run",
report => 1,
apxs => '/usr/local/sbin/apxs',
# httpd => '/usr/local/sbin/httpd',
required_modules => ["log_config", "alias", "perl", "mime"],
config_block => q{
[% IF AP_VERSION == 2 %]
eval { use Apache2 };
eval { use Apache::compat };
[% END %]
<Location /myapp>
AllowOverride None
SetHandler perl-script
PerlSetVar approot [% cwd %]
PerlHandler MyApp
Options +ExecCGI
</Location>
});
Like. Look at that. Chef's kiss. π
πΈ DESCRIPTION πΈ
Okay so real talk: this is the class for defining an apache web server to be used in RunApp. That's the whole vibe. You want an apache, you come here, you define it, you slay. π
π«Ά CONSTRUCTOR π«Ά
new (%arg) β the main character β¨
Required arg, no cap:
rootβ The root for the apache instance. It's literally the home base of your whole apache situation, bestie. πapxsβ the apxs path, if you got one.httpdβ Ifapxsis specified,httpdwill be derived from it. So like, you don't gotta do both, it does the math for you. πrequired_modulesβ A arrayref to the apache modules required. It's an arrayref. A list of modules you NEED. Required ones. The name is not lying to you. π₯config_blockβ The config block that will be the extra block in the template used byRunApp::Template::Apache. This is where you pour your whole heart into some template text and it becomes config. It's iconic.CTLβ The class for handling apachectl. The default isRunApp::Control::AppControl. You can also useRunApp::Control::ApacheCtl. Pick your fighter. βCONFβ The class for handling apache config. The default isRunApp::Template::Apache. It is used in thebuildphase of RunApp. The way that this one just handles the config for you. Obsessed. π
π SEE ALSO π
RunAppRunApp::Control::ApacheRunApp::Template::ApacheApp::Control
Go read them. They're all in the group chat. π¦
π AUTHORS π
Chia-liang Kao <clkao@clkao.org>
Refactored from works by Leon Brocard <acme@astray.com> and Tom Insam <tinsam@fotango.com>.
Absolute legends, all of them. Periodt. π
π COPYRIGHT π
Copyright (C) 2002-5, Fotango Ltd.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself. So like, go off. It's free. Do what you want within the terms. π
and that's the whole page, bestie!! no notes, ate it up, fr fr π§
RunApp::Apache β this was the perl v5.34.0 version, dated 2022-06-17, from the User Contributed Perl Documentation collection. mwah π π
π¦ where this page comes from
- debian bookworm: librunapp-perl 0.13-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: librunapp-perl 0.13-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librunapp-perl 0.13-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librunapp-perl 0.13-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librunapp-perl 0.13-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms