Find httpd.conf on Apache Linux webserver

The httpd.conf file is a configuration file used by the Apache webserver. It contains information about settings and functions by this webserver. The file can be located in various places; this depends on the version of Apache and/or the operating system used. It can be commonly found here: /etc/httpd/httpd.conf

You can then edit this file with this command:

sudo nano /etc/httpd/httpd.conf

However, in case this file can not be found on the location indicated as above, you can perform this command:

httpd -V

The output of this command should reveal the location of httpd.conf on your Linux apache webserver.


Author Bio

Thank you for your interest in my blog! On this miniblog, I write mostly short (technical) blog posts that might interest other people. Read more about me or feel free to contact me.


Leave a Reply

Your email address will not be published. Required fields are marked *