As from a virtual machine to open the site raised on the local server (Denver) if they (the sites) several?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/code-flow.club/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
7 views
If raised on the host only one website, then for him to get out from under the virtual machine's IP address.


On the host it is solved by appeal to domain name of the website, for example for the main localhost, second site1, site2 third, etc.


How to open domains site1 and site2 from the virtual machine?
by | 7 views

2 Answers

0 like 0 dislike
And hosts to improve not a virtual machine did not try?
by
0 like 0 dislike
You need to do to in the guest OS different domain names resolved to a single IP address of the local server.
And how to do it — there are many options: raise DNS server on the host, raise DNS service in a virtual machine (although the idea of a virtual machine and so have to provide DNS forwarding), or the easiest thing is to register site1 and site2 in the guest OS /etc/hosts.
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
22,472 users