RunApp::Apache(3pm)

πŸ“¦
version 0.13 Β· 2 versions
  • 0.13 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.13 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’… 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 β€” If apxs is specified, httpd will 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 by RunApp::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 is RunApp::Control::AppControl. You can also use RunApp::Control::ApacheCtl. Pick your fighter. ⭐
  • CONF β€” The class for handling apache config. The default is RunApp::Template::Apache. It is used in the build phase of RunApp. The way that this one just handles the config for you. Obsessed. 😭

🌈 SEE ALSO 🌈

  • RunApp
  • RunApp::Control::Apache
  • RunApp::Template::Apache
  • App::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 (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