Apache HTTP Server /etc/httpd/conf.d/welcome.conf

Original ๐Ÿ“‹ Red Hat Enterprise Linux 9 (Plow) 20 lines

Works On

Viewing:
Red Hat Enterprise Linux 9 (Plow)
Same on:
CentOS Stream 9
Other versions:

Details

Size
20 lines
MD5
574b5d4686c892e81fa808db0d311ff8
SHA256
77efdb75195b1280820a47c6f025a1a8e3de5afe4d80472674b4074b21b69abc

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/574b5d4686c892e81fa808db0d311ff8?hint=welcome.conf
wget:
wget -O welcome.conf https://exampleconfig.com/api/v1/config/original/574b5d4686c892e81fa808db0d311ff8?hint=welcome.conf

For AI Agents

You are a DevOps agent. Fetch the default Apache HTTP Server config for Red Hat Enterprise Linux 9 (Plow) from https://exampleconfig.com/api/v1/config/original/574b5d4686c892e81fa808db0d311ff8?hint=welcome.conf. Compare with my current /etc/httpd/conf.d/welcome.conf and summarize differences and safe changes.

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

/etc/httpd/conf.d/welcome.conf
# 
# This configuration file enables the default "Welcome" page if there
# is no default index page present for the root URL.  To disable the
# Welcome page, comment out all the lines below. 
#
# NOTE: if this file is removed, it will be restored on upgrades.
#
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /.noindex.html
</LocationMatch>

<Directory /usr/share/httpd/noindex>
    AllowOverride None
    Require all granted
</Directory>

Alias /.noindex.html /usr/share/httpd/noindex/index.html
Alias /poweredby.png /usr/share/httpd/icons/apache_pb3.png
Alias /system_noindex_logo.png /usr/share/httpd/icons/system_noindex_logo.png

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/httpd/conf.d/welcome.conf
Directory
/etc/httpd/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 welcome.conf?

Restore it. Compare it. Start clean.

How do I restore Apache HTTP Server defaults?

Download, replace, restart.

Is welcome.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 Red Hat Enterprise Linux 9 (Plow).

Can I use this for Apache HTTP Server troubleshooting?

Absolutely. Diff this against yours to spot the problem.