Practice
So, you have the task of editing the Apache web server's configuration files, but here's the problem - you don't know where they are. Whether because you switched to an OS type you're not used to, or you're installing Apache for the first time, or for some other reason - you need to find them.
Well, let's show where the Apache configs are located for different operating systems, namely: Linux Debian (and ubuntu), Linux CentOS (and RedHat), and FreeBSD.
Debian:
/etc/apache2
files: everything located there. The main ones: apache2.conf and ports.conf, as well as everything inside the sites-enabled and mods-enabled folders.
CentOS / RedHat:
/etc/httpd
Main config file: /etc/httpd/conf/httpd.conf
Additional files: /etc/httpd/conf.d/*
FreeBSD:
/usr/local/etc/apache22
Main config: /usr/local/etc/apache22/httpd.conf
Additional configs: everything located in the /usr/local/etc/apache22/Includes folder
Applies to: Apache 2.x; Debian, CentOS, FreeBSD (ubuntu, redhat)
Comments