I have installed a localhost server on a Windows 7 machine using DrupalPro and VirtualBox. I would like to be able to access the website created there (and the two demo websites that came installed) from an external browser located on the same computer. I need help figuring out what that browser address would be.
I am able to access (and edit) the websites created on the localhost with the Firefox browser located within the Ubuntu operating system. I can't, however, access it from the Windows copy of Firefox which resides on the same machine because I can't figure out what the path to the webpage on the localhost server would be.
If I enter the IP address of the localhost, 192.168.56.xxx, in the Windows copy of Firefox, I get the DrupalPro Development Desktop information from the localhost server, so I know I am able to access the database. I can't, however, figure out the path to the websites I would need to use from that same external browser located on the same computer. A search for 192.168.56/xxx/example7.dev returns a 404 error, "The requested URL /example7.dev was not found on this server." Other addresses I try return similar messages. Folder permissions along the path have all been set to "create and delete files."
Can anyone give me some help with what the path would be to the websites folder using an external browser located on the same machine for a DrupalPro standard install? (The path to the folders shown in the Ubuntu file browser is /home/drupalpro/websites/[sitename])
Comments
Comment #1
mike stewart commentedThis is a virtualbox networking question. I think there are limitations with wireless networks, and might not work with all/any adapters. You might need to setup a HOST-ONLY connection.
But maybe I can help. Assuming a single network adapter the easiest way to do it is:
1) power down your Drupalpro.
2) In Virtualbox -> Drupalpro -> Settings -> Network: Change your networking from NAT to BRIDGED (or host only). Note, on windows with an ethernet connection, this may already be setup. In this case, Check that Adapter 2 is BRIDGED. Make sure its enabled and that its using the ethernet driver (Name). Finally, ensure the "cable connected" under Advanced.
3) Start Drupalpro.
4) In Drupalpro, right-click on Networking indicator icon (top-right), then select "Connection Information" -- it should be an IP address on your local area network if everything is setup correctly.
5) use the IP address from step 4 and edit your windows hosts file so that you have a line that looks something like:
###.###.###.### example6.dev example7.dev foo.barComment #2
mike stewart commented