a2ensite equivalent in CentOS
Mimicking the Debian config system isn't difficult.
- In your Apache config, you have to include every
*.conf
file in/etc/httpd/sites-enabled
with the directiveInclude sites-enabled/*.conf
. - Add the config to a
*.conf
file in/etc/httpd/sites-available
. - Activate the site in the config file by creating a link from the relevant file in
/etc/httpd/sites-available
into/etc/httpd/sites-enabled
, which is basically the only thing thata2enable
does on Debian.