Nextcloud version (13.0.4):
Operating system and version (Ubuntu 18.04):
Apache version (Apache 2.4.29):
PHP version (7.1.18):
and now I can access NC via http://ip but when I go to https:/ip I see Apache2 Ubuntu Default Page
How to turn on NC in https address?
The output of /var/www/html/nextcloud/config/config.php
:
<?php
$CONFIG = array (
'instanceid' => 'xx',
'passwordsalt' => 'xx',
'secret' => 'xx',
'trusted_domains' =>
array (
0 => '192.168.0.138',
),
'datadirectory' => '/var/www/html/nextcloud/data',
'overwrite.cli.url' => '/',
'dbtype' => 'mysql',
'version' => '13.0.4.0',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'xx',
'dbpassword' => 'xx',
'installed' => true,
);
The output of ls -l /etc/apache2/sites-enabled
:
total 8
-rw-r--r-- 1 root root 6338 июн 17 19:18 default-ssl.conf
lrwxrwxrwx 1 root root 33 июн 16 20:16 nextcloud.conf -> ../sites-available/nextcloud.conf
The output of /etc/apache2/sites-available/nextcloud.conf
:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot /var/www/html/nextcloud/
ServerName 192.168.0.138
ServerAlias 192.168.0.138
Alias /nextcloud "/var/www/html/nextcloud/"
<Directory /var/www/html/nextcloud/>
Options +FollowSymlinks
AllowOverride All
Require all granted
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
The output of /etc/apache2/sites-enabled/default-ssl.conf