Tuesday 10 October 2017

windows 7 - Setting up virtual PC (virtual box) as a web server


i am on windows 7. i am thinking of setting up a virtual pc/ubuntu with virtual box to act as a (linux) test web server. how can i set it up? i think the default of NAT networking will fail as the virtual PC and my PC (host) is not on the same network?


i guess to make things simple, i need to setup FTP too? so i can easily upload my web apps to the server?


so i think 2 main questions here. setting up virtual box (guest) + windows 7 (host) so that they can "talk" as in a normal web request scenario. another thing will be how shld i setup sharing? an alternative to FTP will be to setup virtual box to be able to access my windows development folder to get the files to serve as they are being developed



Answer



For direct communication between your guest OS and your host you could either set up bridged networking or host-only network. An alternative would be to configure as NAT and setup the corresponding port forwardings. I think you can unfortunately not circumvent reading the networking part of the VBox manual: http://www.virtualbox.org/manual/ch06.html


You can certainly setup a couple of shared folders to share your files. Depending on your guest OS this is more or less convenient - but not difficult at all regardless of which OS you take.


FTP is a good option for Web development since most Web Development capable IDEs support FTP publishing. An alternative is to set up WebDAV.


If you need help with setting up the stuff you will have to specify which guest OS you are going to use (Linux?)


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...