Do you need to restart/reload Apache when adding a configuration file under /etc/httpd/conf.d?

I know that editing the httpd.conf need a restart or a reload but unsure if file placed in the conf.d need apache to get restarted.

Thanks for the help

EDIT: I was under the impression that addition to /conf.d would need a regular/graceful restart but several times configuration files I've added to that directory made an effect without having to restart. This is the reason that led me to ask this question.


Yes. conf.d files are included in Apache's configuration with a line like:

Include conf.d/*.conf

so changes are only noticed when the main configuration is reloaded. Note you can also use the 'graceful' restart (/etc/init.d/httpd graceful on some, apachectl graceful on others) to reload the configuration without dropping existing connections.

  • 2
    Absolutely correct.
    – Corey S.
    Aug 4 '09 at 7:33
  • yes, I was under the impression that it would work the same as the main configuration but I had my share of suspicion today so I decided to check out with you guys. Aug 4 '09 at 8:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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