How to create virtual website
I’m using Ubuntu 12.04.03 32bit
It’s possible to do virtual websites so domains are seen in locally. Here is tutorial how to do that.
First you need to install Apache. Here is tutorial how you do that: How to install LAMP
Find out your ip address and add it to your hosts file
1.2.3.4 is my ip address and test.soivi and www.test.soivi are my domain names.
Add file test.soivi in /etc/apache2/sites-available/
This file tells where is the test.soivi’s index file. This is my directory “/home/user/public_html/” where my index file is.
Enable site and reload Apache
Now www.test.soivi and test.soivi domains works in your local computer.
Now you have virtual websites in your local computer.