% grep -v ^# /etc/rc.conf
% grep -Ev ^#\|^$ /usr/local/etc/apache24/httpd.conf
Register as a new user and use Qiita more conveniently