Answer the question
In order to leave comments, you need to log in
Accessing mysite.localhost from VM?
Good day people
Such a problem: I work in Ubuntu, usually sites are launched as localhost/www.site.com For testing in IE, I keep a couple of operating systems in VirtualPC. Access from it to the site normally works by IP address, something like this: 123.123.123.123/www.site.com
However, here they adjusted the site for support, which otherwise works in LAN.
It was done like this: it
is written in hosts:
127.0.0.1 newsite.localhost
A virtual host is added to httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot /opt/lampp/htdocs/newsite.com/site/www
ServerName newsite.localhost
And contact in the end you need it like this:
newsite.localhost
And the question, respectively, is it possible to reach this miracle from the virtual machine?
Thanks in advance for your reply
Answer the question
In order to leave comments, you need to log in
Register in the virtual machine in hosts (in Windows/system32/drivers/etc/hosts in my opinion)
123.123.123.123 newsite.localhost
and reach out in the same way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question