Showing posts with label apache2. Show all posts
Showing posts with label apache2. Show all posts

Thursday, 27 December 2012

Apache Server - new virtual host or site

In order to ease development of many PHP projects simultanious and let the PHP IDE's I am testing update the source automatically I use the following to create new virtual hosts:


sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/mynewsite

Edit the new file  to configure the new site, I am using ~/Development/project as the web folder.

sudo a2dissite default
sudo a2ensite mynewsite
sudo service apache2 reload

to activate the new site and reload apache2