Internal Server Error after changing SSL-certificate

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, 20.0.5): 23.0.0
Operating system and version (eg, Ubuntu 20.04): Docker
Apache or nginx version (eg, Apache 2.4.25): 2
PHP version (eg, 7.4): 8.0.13

The issue you are facing:

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

Steps to replicate it:

  1. I have my Nexcloud running in docker, with exposed port 8888:80
  2. My nginx-reverse-proxy redirects my http ://nextcloud.mydomain.abc to my internal 192.168.x.x:8888 with a newly generated Let’sEncrypt-SSL-certificate on https ://nextcloud.mydomain.abc
  3. With creating and exposing more services as https ://service.mydomain.abc I figured that I might need a wildcard-certficate. So I generated one in my Cloudflare Dash. (That is what I’m using to proxy my pulic IP-adres.
  4. After changing de configuration in my nginx-proxy-manager all of my services are working but nextcloud.
  5. I know I did something (probably stupid) but I cant figure out what… :thinking:

The output of your Nextcloud log in Admin > Logging:

I cant login to nextcloud, when I visit https ://nextcloud.mydomain.abc it states the following:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

The serverlog (nextcloud.log) in ‘nextcloud-path/data’ doenst have any recent lines.

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

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 =>
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => '****',
  'passwordsalt' => '****',
  'secret' => '****',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.mydomain.abc',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'http:// nextcloud.mydomain.abc',
  'dbname' => '****',
  'dbhost' => '****',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '****',
  'dbpassword' => '****',
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

Can't find this

Help would be highly apriciated ! If there are more logs I can search, please let me know.
I added spaces to my URL due to restrictions on this forum (max. amount of links)

Apparently I fixed it, by redeploying my docker-compose.yml (portainer-stack).