I am using openwrt for some days and currently I am trying to solve one issue with accessing my web server from the local LAN. On my web server I have two virtual hosts - nextcloud and web page and after some digging in internet I managed to set the local access to the nextcloud but not to the web page.
It have the following setup:
LAMP server with static IP address 192.168.0.80, which hosts nextcloud and web page
HTTPS and WAN access is working fine, including the 443 and 80 port forwarding.
The server is being accessed from internet on the following addresses:
mydomain - web page
cloud.mydomain - nextcloud
With openwrt I tried to set the access from the LAN over the public addresses, which works partially. What I did was to set up in Network / Hostnames:
mydomain - 192.168.0.80
cloud.mydomain - 192.168.0.80
With this setup I can access nextcloud with < cloud.mydomain > but when I try < mydomain > I get to the openwrt login and not to the web page.
What could be wrong here? Is it something to do with the fact that one is domain and the other is subdomain?