User login

Localhost from a virtualbox XP install on Ubuntu

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 ??

do it


Searched words: 
localhost from windows XP client virtualbox winxp


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 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

I have my local environment to use Apache Vhosts ie

How would I access these domains from the vbox?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.