sites-enabled and sites-default

I was looking through some documentation to configure Apache on Ubuntu and came across these commands from debian to make it easy to manage your enabled sites and enabled modules:

a2ensite
Will create the symlinks in sites-enabled
a2dissite
Will remove the symlinks from sites-enabled
a2enmod
Will create the correct symlinks in mods-enabled to enable the module
a2dismod
Will remove the symlinks from mods-enabled to disable the module

Type in the command and you'll be prompted about which site or module to enable. This is easier than creating the symlink manually!




handy

Very handy indeed!

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options