Setting up the environment

Add entries host entries for test1-localhost and test2-localhost pointing to 127.0.0.1. (/etc/hosts on Unix or c:\windows\system32\drivers\etc\hosts on Windows).

Then, follow this link.