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