does not see the Internet virtual hosts xampp - xampp opens his folder htdocs !, but on the LAN sees these hosts! xampp running on linux mint, dns server - win2003, proxy - zentyal. a couple of days already struggling, do not understand what I'm doing wrong? I need to host multiple sites using xampp and the Internet to access it.
in the localhost - site opens at its address www.site.ru directory /opt/lampp/htdocs/site.ru/www in the localhost - site opens at its address www.site2.ru directory /opt/lampp/htdocs/site2.ru/www
in the internet - site opens at its address www.site.ru directory /opt/lampp/htdocs/ in the internet - site opens at its address www.site2.ru directory /opt/lampp/htdocs/
I need to have: in the internet - site opens at its address www.site.ru directory /opt/lampp/htdocs/site.ru/www in the internet - site opens at its address www.site2.ru directory /opt/lampp/htdocs/site.ru/www --- what am I doing wrong?
Additionally, you did not define a VirtualHost for localhost (i cannot see any), therefore localhost is unknown for Apache and instead the default VirtualHost (i.e. the first one) is taken.
You MAY mix ip based and namebased VirtualHosts (this is not a problem, you must use different IPs), but as already said, if you use ip based VirtualBox, you should assign the LAN IP instead 127.0.0.1 (or the external WAN IP, if your server is connected directly to the internet instead via a router).
If your server is connected via a router, you also have to activate a port forwarding in your router for port 80 to your server PC.
Finally: Xampp is NOT meant for online access, it is unsafe.