mod_rewrite & VirtualBox to Apache server

Discussions related to using VirtualBox on Linux hosts.
Post Reply
unclaimedbaggage
Posts: 6
Joined: 24. Apr 2009, 10:27
Primary OS: Ubuntu 8.10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP

mod_rewrite & VirtualBox to Apache server

Post by unclaimedbaggage »

Hi gang,

I'm trying to view a site on my (host) Ubuntu/Apache machine via a host-only networked XP virtualbox.

While I can get to the front page via 10.0.2.2, it doesn't seem to be resolving mod_rewrited pages correctly, just brings up a "page not found" message.

The .htaccess rewrite rules do not have any reference to server name (rewrite base = "/", rewrite cond's are all %{REQUEST_URI} & %{REQUEST_FILENAME}) and I can access the rewrite rules fine through 127.0.0.2 on my host machine. ...any suggestions why this would be happening? Has me stumped...

Cheers,
- JB
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: mod_rewrite & VirtualBox to Apache server

Post by Sasquatch »

Use something else than NAT, then try again.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: mod_rewrite & VirtualBox to Apache server

Post by Perryg »

Have a look at this. See if it applies to your situation.

http://support.microsoft.com/kb/884020/
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: mod_rewrite & VirtualBox to Apache server

Post by vbox4me2 »

Make sure apache/mod_rewrite knows who's who, Host only relies on everything being done inside this local lan, dns, routing, gateway, so don't try to do any name resolving, ip only.
Post Reply