Technical Services Archive

How to Disable IPv6 in Apache Server

While we will certainly need to move to IPv6 when all of the IPv4 space is gone, right now, there is no reason to run Apache with IPv6 unless you need it. Disabling it is easy. Just a couple of quick changes to the Listen directive. I often do this as part of our ongoing optimizations for clients that use our Linux server management service.

IPv6 is on by Default

By default, Apache will listen on all IPs, both IPv6 and IPv4. (Assuming your system has IPv6 support). This is controlled by the Listen directive:

Listen 80

Turn off IPv6 in Apache

To turn off IPv6 in Apache, just change the Listen directive to:

Listen 0.0.0.0:80

This will limit Apache to listening only to IPv4 connections. Repeat this for port 443 if you want to stop Apache from listening for HTTPS on IPv6.

Security

While I’ve not seen any security issues by leaving this on, I always like to minimize the threat surface as a matter of habit. If you only need Apache to listen on a set of IPs, specify just those IP addresses. Many dedicated server providers are turning up their IPv6 connections, so you don’t want to leave them exposed if you are not using them.

Practical Thinking on AI, Code, and Risk

Managing AI Operations

You're Buying AI. Who's Managing It?

Buying tools is easy; operationalizing them is where the risk lives. Why tool adoption stalls without pragmatic governance.

Read article

Code & Automation Risk

What to Ask Before You Ship AI-Generated Code

Why 35,000 lines of unowned prompt-code become an organizational liability, and how architectural guardrails protect you.

Read article

Legacy Modernization

Legacy Software a Problem? AI Can Help.

Full rewrites fail 4 out of 5 times. How targeted, AI-assisted refactoring modernizes core systems without big-bang rebuild risk.

Read article

Let's talk about what you need.

Tell me about your situation. If there's a fit, we'll schedule a call.

Start a Conversation