Linux – Apache a2ensite default settings

apache-2.2linuxUbuntu

I have set up VirtualHost files from scratch before and only recently come over the a2ensite command. I think this is a great command and very useful, but most of my sites configured have the same settings (such as ssl certs, basic auth etc).

Is there a way I can change what a2ensite writes to in my sites-enabled directory when I use it? For example, automatically putting my ssl certs in, etc.

Cheers

P.S. On 11.04 Ubuntu Server with Apache2 installed. Permissions to install further software.

Best Answer

a2ensite only creates the correct symlink in sites-enabled to allow the site configured in sites-available to be served.