Should I use httpd.conf or apache2.conf for Apache configuration?

19,281

Solution 1

Just did some more research on this (beyond my comment):

Ubuntu Docs: HTTPD - Apache2 Web Server

apache2.conf: the main Apache2 configuration file. Contains settings that are global to Apache2.

httpd.conf: historically the main Apache2 configuration file, named after the httpd daemon. The file can be used for user specific configuration options that globally effect Apache2.

So to echo @slhck - I would source the httpd.conf from the apache2.conf.

Solution 2

httpd.conf is empty (or nonexistent) in some distributions. If an apache2.conf is present you should probably not edit this, but include your own httpd.conf from the apache2.conf. This is because apache2.conf may be overwritten by package updates.

Your apache2.conf therefore should include this line. If it doesn't already, you can add it yourself:

Include httpd.conf

/etc/apache2/conf.d is also a good place to put configuration files.

Share:
19,281

Related videos on Youtube

tjons
Author by

tjons

Updated on September 18, 2022

Comments