Reverse Proxy not working

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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:

Nextcloud version (eg, 12.0.2): 17.0.2.1
Operating system and version (eg, Ubuntu 17.04): Debian Buster
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Debian)
PHP version (eg, 7.1): PHP 7.3.11-1~deb10u1 (cli)

The issue you are facing: Site won’t load through reverse proxy in subdirectory

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. add /nextcloud location in existing reverse proxy
  2. attempt to load domain.net/nextcloud.index.php
  3. get error screen

The output of your Nextcloud log in Admin > Logging:
No errors logged in last 2 days.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "trusted_domains": [
        "cloud.odinforce.net",
        "odinforce.net",
        "hecate"
    ],
    "onlyoffice": {
        "verify_peer_off": true
    },
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "overwritewebroot": "\/nextcloud",
    "dbtype": "mysql",
    "version": "17.0.2.1",
    "overwrite.cli.url": "https:\/\/cloud.odinforce.net\/nextcloud",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "mail_smtpmode": "smtp",
    "mail_smtpsecure": "tls",
    "mail_sendmailmode": "smtp",
    "mail_smtpauthtype": "PLAIN",
    "mail_smtpauth": 1,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "maintenance": false,
    "memcache.local": "\\OC\\Memcache\\APCu"
}

Here’s logs from the actual attempting to load https://domain.net/nextcloud/index.php
everything works fine if I use cloud.domain.net/nextcloud.index.php
The output of your Apache/nginx/system log in /var/log/____:
https://pastebin.com/q2wqfv9F
Also, heres my nginx logs. Lots of 400s
https://pastebin.com/diqKT0Gx