Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Getting local devel environment setup with Apache 2.4. Looks like things have changed compared to 2.2

In particular, conf.d/ directory is gone and now we have just conf/ directory with a single entry for virtual hosts file in httpd.conf:

#Include conf/extra/httpd-vhosts.conf

How then to get multiple virtual host config files in place and recognized by this, the latest version of Apache?

I'd prefer not to chuck all my virtual host entries in a single file. The conf.d directory solution is nice in that you only virtual host files in there, nothing else config-wise to filter out (minor detail, but cleaner, imo)

share|improve this question
up vote 6 down vote accepted

You can always put Include conf.d/*.conf in your httpd.conf if you want...

share|improve this answer
doh, that was rather silly, right there in 2.2 httpd.conf, thanks for the clue in ;-) – virtualeyes Mar 5 '12 at 9:42
if not httpd.conf, can also be added in /etc/apache2/apache2.conf depending on the system. – TryTryAgain Nov 10 '15 at 21:43

Whoever finds this, here's a 2016 update

On my Debian 8.2 copy the folder appears to be replaced with conf-available and conf-enabled setup.

conf-available: this directory contains available configuration files. All files that were previously in /etc/apache2/conf.d should be moved to /etc/apache2/conf-available.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.