Location of Apache Conf on MacOS Sierra

apache2

Get the path of running Apache

$ ps -ef | grep apache
apache   12846 14590  0 Oct20 ?        00:00:00 /usr/sbin/apache2

Append -V argument to the path

$ /usr/sbin/apache2 -V | grep SERVER_CONFIG_FILE
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

Reference: http://stackoverflow.com/questions/12202021/where-is-my-httpd-conf-file-located-apache

Leave a Reply