Home ›
Localhost from a virtualbox XP install on UbuntuLocalhost from a virtualbox XP install on Ubuntu
Submitted by dhakimzadeh on April 23, 2009 - 9:51am
So you've got yourself a shiny new laptop, installed ubuntu and virtualbox and now you have a version of windows xp running nicely in a window.
But that's not enough for you is it? You want to be able to see your local environment from your XP install too, so you fire up IE and goto http://localhost, but it ain't there!!
well, have you tried http://10.0.2.2 ??
do it
Resolution
Searched words:
localhost from windows XP client virtualbox winxp
Comments
Everything works OK except
Everything works OK except images (actually, any request with $base_url). I'm still looking around for answers to this, but I stumbled here, so I thought I'd ask (especially because I'm a Drupal user, too!).
Set $base_url manually?
You can set $base_url manually in settings.php; this is needed in the Drubuntu setup (http://example.localhost) also, at least until recently.
My $base_url in settings.php
My $base_url in settings.php is set to http://localhost/mywebsite
Should it be something else?
At what address do you see your site in your browser?
Your $base_url should be the same.
Does that mean that I have to
Does that mean that I have to change the $base_url in my settings.php to 10.0.2.2 every time I want to connect to the site with my guest OS? I thought there would be a more elegant solution.
I think the best option for
I think the best option for testing the site with a virtual guest is to comment out the $base_url variable in the settings.php file.
What if I am using loc.example.com
I have my local environment to use Apache Vhosts ie loc.example.com
How would I access these domains from the vbox?
Post new comment