Virtual host creation

virtual host for each project in our local and set a separate environment for that virtual host, so that it doesn’t have to conflict with the localhost environment which John (and the team at his end) may also be using.

For example, for devehappy, see the main index.php, I have set up a separate environment “vivid_local” for the (virtual) host “devehappy.vivid” .
So the config folder for this environment is config/vivid_local

So here are the steps to set up a virtual host in your local;

1) In C:\Windows\System32\drivers\etc\hosts file
add this localhost (Don’t add this line if it already exists) devehappy.vivid

2) In your xampp\apache\conf\extra\httpd-vhosts.conf  file (for wamp this path may be a little different)
add this
NameVirtualHost *:80 (Don’t add this line if it already exists)
<VirtualHost *:80>
DocumentRoot “D:/xampp/htdocs/devehappy”
ServerName devehappy.vivid

3) Restart apache

Now you should be able to access the site with http://devehappy.vivid . For this to work ,you will need the .htaccess file with the /index.php removing code in it .