
私はUbuntu 20.04を使用しており、次の場所にあるランプインストールにowncloudの最新バージョンをインストールしました。/var/www/html/owncloud/
問題:owncloudは空白の白いページを提供しますhttps://someothersite.org/
役に立つ情報:私はすでにポート443の/var/www/html/を指すOpenSSL証明書を使用して複数のWordPressをインストールしています。
アップデート phpmyinfo.phpを/var/www/html/owncloud/ディレクトリに追加してSSLをテストし、URLに正常にアクセスしました。https://someothersite.org/phpmyinfo.phpしたがって、SSL 警告によって SSL がディレクトリ内のファイルをブロックすることはありません。問題は SSL によって発生したものではないと思われます。
私のファイルにはowncloud.conf
次のものがあります:
<VirtualHost *:443>
ServerName someothersite.org
ServerAlias www.someothersite.org
# If this is the default configuration file we can use: 'ServerName localhost' or also 'ServerAlias localhost'.
ServerAdmin [email protected]
ErrorLog ${APACHE_LOG_DIR}/someothersite.org.error.log
CustomLog ${APACHE_LOG_DIR}/someothersite.org.access.log combined
DocumentRoot /var/www/html/owncloud/
<Directory /var/www/html/owncloud>
Options None FollowSymLinks
# Enable .htaccess Overrides:
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
#My Edit
SSLEngine on
SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
</VirtualHost>
私のファイルには/etc/hosts
次のものがあります:
127.0.0.1 localhost
127.0.0.1 someothersite.org
someothersite.org.error.log に次のエラーがあります:
[ssl:warn] [pid 32824] AH01906: someothersite.org:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[ssl:warn] [pid 32824] AH01909: someothersite.org:443:0 server certificate does NOT include an ID which matches the server name
[ssl:warn] [pid 32824] AH01906: someothersite.org:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[ssl:warn] [pid 32824] AH01909: someothersite.org:443:0 server certificate does NOT include an ID which matches the server name
任意のヒント?
答え1
空白の Owncloud ページについて:
Owncloud でエラーが発生しているようです。Owncloud からのエラーは Owncloud 自体によって処理されます。Owncloud のドキュメントを確認しました:https://doc.owncloud.com/server/admin_manual/troubleshooting/providing_logs_and_config_files.htmldata/owncloud.log
あなたの場合、Owncloud ログファイルはここにあります:/var/www/html/owncloud/data/owncloud.log
SSL 警告に関して:
サーバー証明書ではなく CA 証明書を作成したようです。このトピックについては、すでにここで説明されています:https://stackoverflow.com/questions/36138517/apache-warns-that-my-self-signed-certificate-is-a-ca-certificate