Apache HTTP Server /etc/apache2/conf.d/info.conf

Original ๐Ÿ“‹ Alpine Linux v3.21 40 lines

Works On

Viewing:
Alpine Linux v3.21
Same on:
Other versions:

Details

Size
40 lines
MD5
6fbbe7cb94f43d61ef4c57eee7b7ca9f
SHA256
15a9acc18910e569d49854e8a3aafca442f94df9a7ea14bbd365bf30d8660020

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/6fbbe7cb94f43d61ef4c57eee7b7ca9f?hint=info.conf
wget:
wget -O info.conf https://exampleconfig.com/api/v1/config/original/6fbbe7cb94f43d61ef4c57eee7b7ca9f?hint=info.conf

For AI Agents

You are a DevOps agent. Fetch the default Apache HTTP Server config for Alpine Linux v3.21 from https://exampleconfig.com/api/v1/config/original/6fbbe7cb94f43d61ef4c57eee7b7ca9f?hint=info.conf. Compare with my current /etc/apache2/conf.d/info.conf and summarize differences and safe changes.

Copy this prompt into Claude, ChatGPT, or other AI assistants.

/etc/apache2/conf.d/info.conf
#
# Get information about the requests being processed by the server
# and the configuration of the server.
#
# Required modules: mod_authz_core, mod_authz_host,
#                   mod_info (for the server-info handler),
#                   mod_status (for the server-status handler)

<IfModule status_module>
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.

<Location /server-status>
    SetHandler server-status
    Require host .example.com
    Require ip 127
</Location>

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On
</IfModule>

<IfModule info_module>
#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
<Location /server-info>
    SetHandler server-info
    Require host .example.com
    Require ip 127
</Location>
</IfModule>

Install Apache HTTP Server

Alpine Linux

sudo apk add apache2

Debian

sudo apt update && sudo apt install apache2

Red Hat Enterprise Linux

sudo yum install httpd

Ubuntu

sudo apt update && sudo apt install apache2

File Location

File Path
/etc/apache2/conf.d/info.conf
Directory
/etc/apache2/conf.d/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this info.conf?

Restore it. Compare it. Start clean.

How do I restore Apache HTTP Server defaults?

Download, replace, restart.

Is info.conf safe for production?

Yes. This is exactly what shipped. Safe starting point.

How does this differ from other OS versions?

Defaults change. This one is specific to Alpine Linux v3.21.

Can I use this for Apache HTTP Server troubleshooting?

Absolutely. Diff this against yours to spot the problem.