Skip to main content

Apache HTTPD operations

v0.1.6

Apache version, modules, mod_status snapshot, config syntax check, vhost dump, error/access log tails, plus narrow mutators (graceful reload, graceful stop). Full restart not included — use systemd for that.

8 allowed by default 1 need approval by default 1 denied by default
Pack ID
apache-httpd
Vendor
emisar
OS
linux
Actions
10
Required binaries. Install these on the host before relying on the pack — an action that calls a missing one fails at run time.
apachectl curl

Install

emisar pack install fetches this pack, re-validates it, and verifies its content hash against the --hash below — the exact bytes this page was rendered against, so a tampered copy is rejected — before copying it into the runner's packs dir. The command reloads a running daemon itself; no manual restart.

on the runner host
sudo emisar pack install apache-httpd --hash sha256:0e144d32f0c40e55300922bac9e2f4291607d70f5f5cd402566e9f22361365e4

Actions 10 total

View on GitHub
  • httpd.access_top_clients exec low

    Top client IPs from access log

    Show a tally of source IPs from the last N access log lines.

    View source on GitHub
  • httpd.access_top_urls exec low

    Top URLs from access log

    Show a tally of request URLs from the last N access log lines.

    View source on GitHub
  • httpd.error_tail exec low

    tail error_log

    Tail the last N lines from the Apache error log.

    View source on GitHub
  • httpd.graceful_reload exec high

    apachectl graceful

    Re-reads config and gracefully reloads child workers — no dropped requests.

    View source on GitHub
  • httpd.graceful_stop exec critical

    apachectl graceful-stop

    Drains in-flight requests then shuts down. Apache will NOT come back automatically; use systemd to restart.

    View source on GitHub
  • httpd.modules exec low

    apachectl -M

    List all loaded modules (static + shared).

    View source on GitHub
  • httpd.status exec low

    mod_status snapshot

    Show a snapshot of mod_status (requires mod_status enabled). Set HTTPD_STATUS_URL env var.

    View source on GitHub
  • httpd.test_config exec low

    apachectl -t

    Check config syntax. Run before graceful_reload.

    View source on GitHub
  • httpd.version exec low

    apachectl -V

    Show Apache version + compiled-in directives + MPM.

    View source on GitHub
  • httpd.vhosts exec low

    apachectl -S

    List all configured vhosts with their effective listen + ServerName.

    View source on GitHub