关于您的空白 Owncloud 页面:

关于您的空白 Owncloud 页面:

我使用的是 Ubuntu 20.04,我刚刚在我的 lamp 安装中安装了最新版本的 owncloud,位于/var/www/html/owncloud/

问题:owncloud 提供空白页https://someothersite.org/

有用信息:我已安装多个 wordpress,使用 OpenSSL 证书指向端口 443 上的 /var/www/html/

更新 我通过将 phpmyinfo.php 添加到 /var/www/html/owncloud/ 目录来测试我的 SSL,并成功访问了 URLhttps://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.html。Owncloud 日志文件位于data/owncloud.log您的情况下,它应该在这里:/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

相关内容