A
A
Alexander Andreev2018-11-17 16:48:35
linux
Alexander Andreev, 2018-11-17 16:48:35

How to open websites on a web server on a local network?

I installed CentOS7 Minimal on the laptop, set up the network, installed and configured LAMP, created a virtual domain, on a computer (Windows 10) and on the same network in the hosts file I wrote:
192.168.1.101 example.com
192.168.1.101 www.example.com

where 192.168. 1.101 - ip address of the server in the local network, example.com - virtual domain created in this north. Apache successfully restarted after setting up virtual domain. I set it up according to this instruction https://www.8host.com/blog/nastrojka-virtualnyx-xo... with symlinks.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2018-11-17
@Sanes

192.168.1.101 example.com www.example.com
Sometimes TAB separation helps. First, try to open the IP address in the browser, the web server must be muted. Clear your browser cache or open in a private window. Flush the DNS cache. In windows command line ipfonfig /flushdns
In centos, stop the firewall.
service firewalld stop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question