I am trying to setup a local network and I am using these kind of types of network.
- Main server which connects to internet with static IP
- Second computer connected to first one locally with address like 192.168.0.2 - when I write this address to address line it is like i wrote localhost in original main server - so it should show my local web browser etc ...
It has domain name this IP and connected router for it ... example www.domain.com so I added to my main server hosts file (linux powered) lines like these:
192.168.0.2 domain.com www.domain.com
It was working ok when I entered my domain name in local computer it showed my site ... But after some time I added HTTPS cerfiticate and added this line to my apatche server:
Redirect permanent / https://www.domain.com/
And now it does not work even when i add something like this to my hosts file:
So any idea how do do this thing work? Thank you.