- I added an `A` record to the domain name pointing my public IP (I have static public IP)
- In Mikrotik, I opened the ports 80, 443 (in IP/Firewall/Nat)
- In Ubuntu server, I added a virtual host for my domain and installed Let's Encrypt certificate
And all works fine! The https : //mydomain.com shows my web application. The only problem is that this configuration I have done, is working only outside local network. When I am connected in the local network, mydomain.com can't be resolved successfully. I tried and I added a static DNS entry in IP/DNS/ :
- Name: mydomain.com
- Address: 192.168.0.100
But the problem wasn't resolved. The only solution I found is to add a record in hosts file in my Windows PC, but I would like to avoid this solution.
Can I configure somehow the Mikrotik, to add a rule (??) for this specific domain? Thanks!