running linux web apps in windows
Hi all,
I have a simple home network consisting of 2 laptops - one is a linux box and the other runs windows and linux with a dual boot setup. I develop my web apps on the linux box but would like to test them out on the windows machine using IE7. I have abandoned the idea of doing this in Linux using wine since in the real world this is unrealistic ... How can I get my Windows machine to see the localhost web apps which run on the linux box ? regards, Steven Matthews |
erm... open browser, go to address of linux box. Am I missing something? What level of "how" are you talking about? From physical connectivity to j2ee server configuration, there's a range of different things to look at.
|
If the Ubuntu box has Apache running then it should be listening on port 80. You can use netstat -nat to check. If it is then you should be able to use the IP address of the Ubuntu box from the windows box to bring up the web pages that you have created on the Ubuntu box.
Or to use the virtual host name instead of the ubuntu IP, you can add them to your hosts (C:\WINDOWS\system32\drivers\etc\hosts) file on the windows box. For example: Code:
xxx.xxx.xxx.xxx www.example.com Regards, Fordeck |
Thanks for that ....
My apps live in virtual servers with addresses like dev.fpc.com for example. How would I direct the windows browser to a particular VS using the same IP address ? regards, Steven Matthews |
Quote:
If so then like I said in my previous post create an entry in the windows host file. You can have multiple names associated with an IP address. For example: Code:
xxx.xxx.xxx.xxx www.example.com dev.fpc.com Again this works fine for testing, of course it would not work in production. Regards, Fordeck |
well it depends on the virtualized networking. Ideally you'd just be using bridged networking, in which case there is no special action at all. The VM appears on the same subnet like any other physical device. If you have nat networking then you'd need the host to redirect certain ports into the VM of your choosing. It's probably worthwhile converting to bridged if you're not already doing this. ALso note that the name of your apps is of no consequence at all.
|
Quote:
|
Your absolutely right, I should have Phrased the question differently. What I was wondering is if he was referring to an Apache VirtualHost?
Thanks for catching that. Regards, Fordeck |
Thanks fordeck ...
RE Or to use the virtual host name instead of the ubuntu IP, you can add them to your hosts (C:\WINDOWS\system32\drivers\etc\hosts) file on the windows box. After editing this file do I need to reboot windows in order for the OS to pick it up ? Steven Matthews |
Quote:
Regards, Fordeck |
All times are GMT -5. The time now is 09:57 AM. |