Apache HTTP Server /etc/apache2/conf-available/charset.conf

Original 📋 Ubuntu 24.04 LTS (Noble Numbat) 6 lines

Works On

Viewing:
Ubuntu 24.04 LTS (Noble Numbat)
Same on:
Debian 13 (Trixie)
Other versions:

Details

Size
6 lines
MD5
e6fbb8adf631932851d6cc522c1e48d7
SHA256
543c6ce7776d222a16c598d1d1108d2de9be5a812f832a35dcaa0bc50369341b
/etc/apache2/conf-available/charset.conf
# Read the documentation before enabling AddDefaultCharset.
# In general, it is only a good idea if you know that all your files
# have this encoding. It will override any encoding given in the files
# in meta http-equiv or xml encoding tags.

#AddDefaultCharset UTF-8

Copy & Paste

curl:
curl https://exampleconfig.com/api/v1/config/original/e6fbb8adf631932851d6cc522c1e48d7?hint=charset.conf
wget:
wget -O charset.conf https://exampleconfig.com/api/v1/config/original/e6fbb8adf631932851d6cc522c1e48d7?hint=charset.conf

For AI Agents

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/e6fbb8adf631932851d6cc522c1e48d7?hint=charset.conf' /><config><app>Apache HTTP Server</app><os>Ubuntu 24.04 LTS (Noble Numbat)</os><location>/etc/apache2/conf-available/charset.conf</location><lines>6</lines><md5>e6fbb8adf631932851d6cc522c1e48d7</md5><sha256>543c6ce7776d222a16c598d1d1108d2de9be5a812f832a35dcaa0bc50369341b</sha256></config></prompt>

Paste into Claude, ChatGPT, or any AI assistant.

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-available/charset.conf
Directory
/etc/apache2/conf-available/
Significance
System-wide configuration directory
Description
Files in /etc/ contain system-wide configuration settings that affect all users.

FAQ

When should I use this charset.conf?

Use it to restore a missing default, confirm what shipped, or diff against your current Apache HTTP Server config.

How do I restore Apache HTTP Server defaults?

Download the file, back up the current one in /etc/apache2/conf-available/charset.conf, replace it, then reload or restart Apache HTTP Server.

Is charset.conf safe for production?

It is the vendor default for Ubuntu 24.04 LTS (Noble Numbat). Treat it as a baseline and review security and performance settings before production use.

How does this differ from other OS versions?

Defaults vary by distro and version. This copy matches Ubuntu 24.04 LTS (Noble Numbat).

Can I use this for Apache HTTP Server troubleshooting?

Yes. Diff it against yours to find drift, then restore only the sections you need.