Page 1 of 1

mod_rewrite & VirtualBox to Apache server

Posted: 25. Apr 2009, 14:48
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

Re: mod_rewrite & VirtualBox to Apache server

Posted: 25. Apr 2009, 14:55
by Sasquatch
Use something else than NAT, then try again.

Re: mod_rewrite & VirtualBox to Apache server

Posted: 25. Apr 2009, 15:03
by Perryg
Have a look at this. See if it applies to your situation.

http://support.microsoft.com/kb/884020/

Re: mod_rewrite & VirtualBox to Apache server

Posted: 25. Apr 2009, 17:01
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.