Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 17 down vote accepted

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.

share|improve this answer
1  
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. –  Adam Benayoun Aug 4 '09 at 8:09

Your Answer

 
discard

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.