N
N
NoName_02016-07-07 15:10:10
linux
NoName_0, 2016-07-07 15:10:10

How to use webserver in virtualbox for local development?

People, help... I want to write sites on a local web server, but what would the web server be running on the guest machine in vbox, and the development itself was carried out on the host machine (thought it would be convenient). To this end, I installed debian on vbox, installed apache2 in the same place - everything starts up normally, but how can I make my folder on the host synchronize with the /var/www/ folder on the guest machine, where the sites should actually be ???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Danil Biryukov-Romanov, 2016-07-07
@NoName_0

Everything is simple. Install Guest additions in the virtual machine and forward any folder to /var/www and voila.
It is described in more detail here:
https://www.virtualbox.org/manual/ch04.html
Or configure Apache so that it looks in /share/something

A
Alex, 2016-07-07
@mr_ko

For this it is more convenient to use Vagrant eax.me/vagrant

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question