How do I access a local network site by typing the virtual address (vhost)?

0

Speak up. All right? Come on! For a long time I have used Xampp to develop, host and access my sites locally. In the htdocs folder I create my directories as the default ( mysite1 , mysite2 , mysite3 , and so on). From there through the hosts and vhosts files I set up to access each site by typing mysite1.loc , mysite2.loc and so on onwards. But this only works if I'm on the PC where Xampp is installed. To access from other devices on the same network, I need to enter the ip or machine name, followed by the name of the folder (site) I want to access ( 192.168.xx.9 / mysite2 ). So how do I access each site from another device just by typing the address set in my vhosts ( mysite1.loc )?

    
asked by anonymous 22.05.2018 / 16:23

0 answers