Cannot access Nextcloud VM from local IP address even when in trusted domain under config.php

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 29.0.4.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • debian 12
  • Web server and version (e.g, Apache 2.4.25):
    • 2.4.62
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • n/a
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • when i installed nextcloud
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Proxmox
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

I downloaded Nextcloud on a proxmox VM using Proxmox VE scripts yesterday, ran through all of the debian setups and then set the VM up. I am able to access the Webmin and MySQL server webpages using ports 12321 and 12322 but i cannot access the nextcloud page at all. I have tried the domain i got with duckdns and nothing and i have tried the local IP address for the VM and nothing is working, its just saying ‘untrusted domain, contact admin or add domain to trusted domains’.

Steps to replicate it (hint: details matter!):

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

get HTTPS://192.168.0.51 400 (Bad Request)

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

<?php
$CONFIG = array (
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
  0 => 'localhost',
  1 => 'www..duckdns.org',
  2 => '192.168.0.11'
  ),
  'datadirectory' => '/var/www/nextcloud-data',
  'dbtype' => 'mysql',
  'version' => '29.0.4.1',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '',
  'installed' => true,
  'instanceid' => '59553a2a1e0c3',
  'memcache.local' => '\OC\Memcache\Redis',
  'redis' => array(
      'host' => '/var/run/redis/redis.sock',
      'port' => 0,
      'timeout' => 0.0
  ),
  'filelocking.enabled' => true,
  'memcache.locking' => '\OC\Memcache\Redis',
  'log_type' => 'file',
  'logfile' => '/var/www/nextcloud-data/nextcloud.log',
  'loglevel' => 3
);

You’re wasting your time troubleshooting an installation method that’s not officially supported by Nextcloud.
It also installs an outdated version (Nextcloud 29), which reached end of life back in April 2025.

Even if you manage to fix your current issue, the very next problem you’ll face will be upgrading to the latest stable release — currently Nextcloud 31.0.9 — which is a major jump with a lot of breaking changes.

If you’re running Proxmox, you have much better and future-proof options:

  • A clean bare-metal VM installation (Ubuntu/Debian)

  • A Snap installation (Ubuntu/Debian)

  • Or the officially supported Nextcloud AIO provided directly by the Nextcloud team

I’m using Proxmox with Nextcloud AIO myself.
I’ve written a complete step-by-step deployment guide (with explanations and maintenance notes) showing how to set it up properly:
:backhand_index_pointing_right: Proxmox + Nginx + Nextcloud AIO + Watchtower deployment guide

The EOL NC 29 was not supporting PHP 8.4. View:
Upgrade to Nextcloud 31 - Support for PHP 8.4 added

Should be reported by error messages in the ignored webserver’s log files :wink: