Welcome Guest.   Make a donation to an author on the site July 31, 2014, 06:29:28 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: how the hell do i access a xampp virtual host from inside vmware RESOLVED.  (Read 4764 times)
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: February 18, 2009, 02:46:01 PM »

this is driving me around the bend. i'm i'm assuming it's a simple solution.

i've got XAMPP running a virtual host site on my PC (so i can test things with the site).

so, as it's a 'virtual host' i can access this site with something like "http://www.madeupname.com" from my PC.

this bit all works perfectly fine.

the problem is, how to access this same virtual host site from inside VMWare?

i can access NON virtual host sites that XAMPP is running, i.e. i can access anything in the 'htdocs' folder of XAMPP when accessing it from within VMWare using http://192.168.0.1

i just don't seem to be able to figure out how to access the virtual hosts XAMPP is running - i thought i'd just be able to do something like "http://192.168.0.1/www.madeupname.com"

can't find any explanation online but then i ain't got a clue if i'm trying to do something that's not possible - seems like a simple enough thing to expect to work to me though.

any help, please?
« Last Edit: May 15, 2009, 04:01:47 PM by nudone » Logged
nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: May 15, 2009, 04:08:51 PM »

i've now got this working.

inside the virtual machine's hosts file, just add the ip of your main hosting machine (the one with xampp on it).

so, if you've got a virtual host inside xampp called "testingsite" and your host machine's ip is 123.123.123.123, then stick this line in the hosts file of your virtual machine:

123.123.123.123  testingsite

so, in the virtual machine's browser you'd access this xampp virtual host with http://testingsite

note: this is just the bit to get things to work inside a virtual machine. there are other steps required to set up the virtual hosts in xampp.
Logged
Carol Haynes
Waffles for England (patent pending)
Global Moderator
*****
Posts: 7,952



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: May 15, 2009, 04:20:16 PM »

I haven't tried it but if your VMWare machine is using NAT networking the simplest solution is to go to the webpage http:\\hostmachinename\testingsite

This works across my network fine and in theory at least NAT based VM machines should just appear as separate machines on the main network.
Logged

nudone
Cody's Creator
Columnist
***
Posts: 4,116



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: May 15, 2009, 04:35:51 PM »

i'm pleased relieved to say that doesn't work (otherwise i've been wasting my time for longer than i'd like to say to figure it out).

this works to access the htdocs folder on the host machine...

http://hostmachinename/

but that isn't what i'm after.

http:/hostmachinename/testingsite doesn't acces the virtual host site either - doesn't seem to do anything.

i don't think it's that simple when using the virtual hosts in xampp. i'm using it so these kind of urls will work

http://testsite or http://www.testsite.com

rather than http://localhost/testsite

(i'm using NAT.)
« Last Edit: May 17, 2009, 01:36:09 AM by nudone » Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.036s | Server load: 0.15 ]