Apache Config File Location in CentOS

apache config file location in centos

Apache is a high performance web server that provides lots of customization options. However, if you don’t the location of Apache config file, it will be difficult to customize it according to your requirements. Here’s Apache config file location in CentOS.


Apache Config File Location in CentOS

Here’s how to find Apache Config File Location in CentOS.


If Apache was pre-installed on your Linux system or you installed it using a package manager, then depending on your Linux distribution, you will find your Apache config file at one of the following locations:

  • /etc/apache2/httpd.conf
  • /etc/apache2/apache2.conf
  • /etc/httpd/httpd.conf
  • /etc/httpd/conf/httpd.conf


If you have installed Apache from source, then you will find the config file at one of the following locations.

  • /usr/local
  • /opt

You can also include a different file (e.g /etc/apache_config.conf) for your configuration. To do that, simply use the Include directive to include its path in Apache’s main config file.


You can use the above steps to find Apache config file location for RHEL/Fedora systems also.

About Sreeram Sreenivasan

Sreeram Sreenivasan is the Founder of Ubiq, a business dashboard & reporting platform for small & medium businesses. Ubiq makes it easy to build business dashboards & reports for your business. Try it for free today!