I installed nextcloud on my Intel NUC and set up the firewall and was able to access it from the localhost but also from my local network. Then I must have changed something but I can’t remember what. Since then I am not able to access nextcloud from my local network. I can still access it from the machine it is installed on. I can access index.html file I have created in the parent folder though. Also I am getting entries in /var/log/apache2/access_log whenever I am trying to access nextcloud. Can’t remember changing .htaccess. I did change the php.ini file though. Any ideas where I can look for the problem?
Sorry, I wanted to change it and only inserted a 1.
So I added another line to the trusted_domains section of config.php and added that same name to the /etc/hosts on my machine and I can access it that way. Any idea why I can’t access it through the IP? It used to work that way
so to be clear, your nextcloud is resolved properly with the correct address https://your.domain.tls and you are wondering why it can’t be accessed locally by entering the IP address.
well congratulations, your server is correctly configured
are you using a local DNS like Pihole or Adguard in your network?
if so, make your instance known to your local DNS, then you’ll be able to reach your instance locally with an IP address.
you don’t have a local DNS, but does the machine you’re trying to access the cloud from know that your instance is in your local network?
if not, try adding the instance IP address and domain to /etc/hosts on your machine. then it will resolve https://your.domain.tls locally first before asking DNS to resolve “the way it should”. this could cause issues in the long run though. DNS is tricky!