title: What does a2ensite do apart from creating a symlink?
body: <p>I regularly use <code>a2ensite</code> and <code>a2dissite</code> to enable and disable sites in Apache. As far as I know it does little more than simply creating a symlink from <code>/etc/apache2/sites-enabled</code> to <code>/etc/apache2/sites-available</code>. I can also do it manually, but because it saves me typing a few characters I use these shortcuts.</p>
  
  <p>I just did a <code>cat /usr/sbin/a2ensite</code>, and to my surprise it's quite an elaborate program. According to the <a href="http://man.he.net/man8/a2ensite" rel="nofollow noreferrer">man pages</a>, it does little more than enabling sites though. I briefly looked over the (Perl) source code, but even though it's a lot of code I don't really understand what it does more than simply creating a symlink.</p>
  
  <p>Why does it need so much code to simply create a symlink? What am I missing here?</p>