« Cron notes with Marsh | Main | Code Snippets for Rules »

October 28, 2010

Virtual hosts and multisites

multi-sites

symbolic links from one directory to core files in another

Virtual hosts

Sites available
$ ls -al /etc/apache2/sites-available/

$ ls -al /etc/apache2/sites-enabled/

Apache modules enabled or available
mods-enabled
mods-available
must have mod-rewrite enabled

To get site into sites-available
/etc/apache2/sites-available
cp default foobar.example.com


Move a website from available to enabled
sudo a2ensite [site URL]

Link to Inigo's blog entry on this

Posted by kkwaiser at October 28, 2010 03:24 PM

Comments

Login to leave a comment. Create a new account.