Editing the apache2.conf file

Overview

The apache2.conf file is the primary configuration file for Apache on a Dedicated Server, and editing it lets you control Apache's global settings.

To edit the apache2.conf file, you must have a Dedicated Server with an admin user. root/sudo access is not available on Managed VPS machines.

How do I edit the apache2.conf file?

To edit this file:

  1. Log into your server via SSH.

  2. Navigate to the following directory. In this example, dh123456 is your Dedicated server name.

    [server]$ cd /etc/apache2-apache2-dh123456/apache2.conf
  3. Edit this file to make your needed adjustments.

See also

This form is only for article feedback. If you require assistance, please contact support. Do not include passwords, account numbers, or other private account details.

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?