Apache2 – Sites-Enabled vs Conf-Enabled

Apache2

What is the difference between conf-enabled and sites-enabled (or conf-available and sites-available if you want to think of it that way)?

When should a file go in one but not the other?

Are they read into apache2 differently or at different times?

Best Answer

conf-enabled is for global configuration excerpts that affect all vhosts. sites-enabled should only contain complete vhost definitions.

Of course, you can also include conf-enabled/* in your vhost definition if that makes sense in your setup.

Related Topic