Internal Server Error after changing SSL-certificate

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via 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:


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


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 :// to my internal 192.168.x.x:8888 with a newly generated Let’sEncrypt-SSL-certificate on https ://
  3. With creating and exposing more services as https :// 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 :// 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!):

$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 => '',
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'http://',
  '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).