Hello to all of you,
after running Nextcloud on a Pi for a long time, I wanted to install the whole thing in a VM. Since I run two systems in parallel I needed a reverse proxy here. When I installed it yesterday, access was also possible. Unfortunately not today.
The apache error.log contains the following messages:
Wed Nov 27 10:40:45.811334 2019] [mpm_prefork:notice] [pid 23034] AH00169: caught SIGTERM, shutting down
[Wed Nov 27 10:41:13.310035 2019] [mpm_prefork:notice] [pid 254] AH00163: Apach/2.4.29 (Ubuntu) configured -- resuming normal operations
[Wed Nov 27 10:41:13.311210 2019] [core:notice] [pid 254] AH00094: Command line: '/usr/sbin/apache2'
In the forum I could not find a solution that would have worked for me.
<?php
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '*****',
'secret' => '****',
'trusted_domains' =>
array (
0 => 'subdomain.domain.com‘,
1 => '192.168.178.125',
2 => 'nc1.local',
),
'datadirectory' => '/mnt/hdd',
'dbtype' => 'mysql',
'version' => '17.0.1.1',
'overwrite.cli.url' => 'http://subdomain.domain.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextclouduser',
'dbpassword' => '********',
'installed' => true,
'maintenance' => false,
'trusted_proxies'=> array(
0 => '192.168.178.105'
),
);
My virtual host config on the proxy
<VirtualHost *:80>
ServerName subdomain.domain.com
ProxyPreserveHost On
DocumentRoot /var/www/html
ProxyPass /.well-known !
ProxyPass / http://192.168.178.125:80/
ProxyPassReverse / http://192.168.178.125:80/
RewriteEngine on
RewriteCond %{SERVER_NAME} =subdomain.domain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Please let me know if more information is needed.
Thanks for the help in advance.