Access domain name on host machine

Problem

Access domain name on host machine.

Solution

Accessing the site through the domain name rather then ip address what you need to do is edit vhost as below:

vi /etc/hosts

and then add ip address of VM and the domain name

100.0.11.111    you-domain.local