I am trying to access my host's Hiawatha website from my VirtualBox machine.
In the VirtualBox machine I access http://10.0.2.2
, (the gateway's address in the virtual machine mapping to the host's local address)
On the host I have configured:
* a default Website with Hostname = 0.0.0.0
* a VirtualHost with Hostname = 127.0.0.1,10.0.2.2
The access logs show that accessing from 10.0.2.2 ends up in the default Website and shows in the log :127.0.0.1 - - [28/Oct/2017:14:28:08 +0100] "GET / HTTP ...
My question: if the log shows 127.0.0.1 why does it end up in the default website?
I would like 10.0.2.2 to access the VirtualHost. How can I catch it then?
Accessing my website from the host using http://127.0.0.1
correctly accesses the VirtualHost
Thanks for your help