Apache Config File Location in Ubuntu

apache config file location ubuntu

Apache is an excellent web server that provides tons of features. However, you will need to modify its configuration file to make full use of its customization. If you don’t know the location of Apache config file, it might be difficult to customize it. Here’s the Apache config file location in Ubuntu.


Apache Config File Location in Ubuntu

Here’s how to find out and modify the apache config file location in Ubuntu.


Ubuntu doesn’t use the standard httpd.conf file for Apache configuration. Instead, it uses the file located at:



If you are unable to locate Apache config file at the above location, look at the following locations:


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

If your Apache is pre-installed, or you installed it using a package manager, you will find it one of the above locations.


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

  • /usr/local
  • /opt

If you want to include a different file (e.g /etc/basic_conf.conf) for configuration, then simply use the Include directive to include its path in Apache’s main config file, like so,

Include /etc/basic_conf.conf



You can use the above information to find Apache config file location for other Debian based Linux 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!