First, follow the instructions here to get a Windows 7/8.1 IE11 virtualbox image.
Then in Virtualbox:
File > Host Network Manager, clickCreate+- Click the newly created Host Network (probably named
vboxnet0) and copy the IPv4 Address. (Probably192.168.56.1.) - Import the
.ovaimage, fill out the options (defaults are fine,) and start up the VM. - In the VM's
Settingsmenu, clickNetworkand setAttached to:to beHost-only Adapter. TheName:field should populate withvboxnet0.
Finally, in the Windows VM,
- Open
C:/Windows/System32/drivers/etc/hostsin Notepad - Add an entry for whatever url you need, using the IPv4 address on the Host Network you created before. Example:
192.168.56.1 localhost
192.168.56.1 mywebsite.test
# etc...
Now you can test whatever webiste you're hosting on your main machine in IE11.