0
I want to access my site that is in #PC1 by mobile or #PC2, but I can only access it by the computer itself where it is, and if I try to enter from another computer only works if I put the IP of my machine instead of the Virtual Host on q the site is. Example: I created a virtual Host in apache with the name SITE1.LOCALHOST only when I put this domain on another pc to be able to see the site, it does not load, unless I put the server IP, which leads to LOCALHOST
Virtualhost is configured to point when accessed, the file
hosts
is for local access, to access the server would have to configure on the router, or else create a proxy, which would depend on configuring the main computer as proxy server and the others would have to configure the network interface (or via operating system). Or else configure thec:/windows/system32/drivers/hosts
(or/etc/hosts
PC2 Linux) to point to PC1 IP, for example192.168.0.101 site1.localhost
– Guilherme Nascimento
This to change the host file of each computer I already knew, but I want that when any device connect on the network, can access the local site, if you can explain me better this of setting up on the router would help a lot
– Luis Felipe